mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2065536 [TEMPLATE ERROR in json export](https://bugs.launchpad.net/calibre/+bug/2065536)
This commit is contained in:
parent
0b4d040893
commit
3108dfbfa4
@ -43,10 +43,7 @@ def implementation(
|
||||
for k in fm.custom_field_keys():
|
||||
afields.add('*' + k[1:])
|
||||
if 'all' in fields:
|
||||
if template:
|
||||
fields = sorted(afields - {'template'})
|
||||
else:
|
||||
fields = sorted(afields)
|
||||
fields = sorted(afields if template else (afields - {'template'}))
|
||||
sort_by = sort_by or 'id'
|
||||
sort_fields = sort_by.split(',')
|
||||
for sf in sort_fields:
|
||||
|
Loading…
x
Reference in New Issue
Block a user