mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:03:26 +02:00
...
This commit is contained in:
parent
6699547216
commit
73583f616b
1 changed files with 2 additions and 1 deletions
|
|
@ -104,9 +104,10 @@ def render_data(mi, use_roman_numbers=True, all_fields=False):
|
|||
field = 'title_sort'
|
||||
if all_fields:
|
||||
display = True
|
||||
isnull = mi.is_null(field)
|
||||
if metadata['datatype'] == 'bool':
|
||||
isnull = mi.get(field) is None
|
||||
else:
|
||||
isnull = mi.is_null(field)
|
||||
if (not display or not metadata or isnull or field == 'comments'):
|
||||
continue
|
||||
name = metadata['name']
|
||||
|
|
|
|||
Loading…
Reference in a new issue