mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Zero is a valid non-None value for int and float custom columns
This commit is contained in:
parent
9f3369edd9
commit
e63e7cca43
@ -69,7 +69,7 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
|
|||||||
continue
|
continue
|
||||||
if field == 'sort':
|
if field == 'sort':
|
||||||
field = 'title_sort'
|
field = 'title_sort'
|
||||||
if metadata['datatype'] == 'bool':
|
if metadata['is_custom'] and metadata['datatype'] in ['bool', 'int', 'float']:
|
||||||
isnull = mi.get(field) is None
|
isnull = mi.get(field) is None
|
||||||
else:
|
else:
|
||||||
isnull = mi.is_null(field)
|
isnull = mi.is_null(field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user