mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
sorted always returns a list
This commit is contained in:
parent
16b7f100ed
commit
cb29d11996
@ -427,7 +427,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
|
|
||||||
custom_map = self.custom_columns_in_meta()
|
custom_map = self.custom_columns_in_meta()
|
||||||
# custom col labels are numbers (the id in the custom_columns table)
|
# custom col labels are numbers (the id in the custom_columns table)
|
||||||
custom_cols = list(sorted(custom_map.keys()))
|
custom_cols = sorted(custom_map.keys())
|
||||||
lines.extend([custom_map[x] for x in custom_cols])
|
lines.extend([custom_map[x] for x in custom_cols])
|
||||||
|
|
||||||
self.FIELD_MAP = {'id':0, 'title':1, 'authors':2, 'timestamp':3,
|
self.FIELD_MAP = {'id':0, 'title':1, 'authors':2, 'timestamp':3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user