mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure that series-type custom columns always store a non-None value in the #extra# column.
This commit is contained in:
parent
313cd5543b
commit
3ba2c75c60
@ -532,6 +532,8 @@ class CustomColumns(object):
|
|||||||
|
|
||||||
if data['datatype'] == 'series' and extra is None:
|
if data['datatype'] == 'series' and extra is None:
|
||||||
(val, extra) = self._get_series_values(val)
|
(val, extra) = self._get_series_values(val)
|
||||||
|
if extra is None:
|
||||||
|
extra = 1.0
|
||||||
|
|
||||||
books_to_refresh = set([])
|
books_to_refresh = set([])
|
||||||
if data['normalized']:
|
if data['normalized']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user