mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 13:36:14 +01:00
sorted always returns a list
This commit is contained in:
parent
16b7f100ed
commit
cb29d11996
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ def migrate_preference(key, default):
|
|||
|
||||
custom_map = self.custom_columns_in_meta()
|
||||
# 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])
|
||||
|
||||
self.FIELD_MAP = {'id':0, 'title':1, 'authors':2, 'timestamp':3,
|
||||
|
|
|
|||
Loading…
Reference in a new issue