mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 15:56:16 +01:00
...
This commit is contained in:
parent
66421de310
commit
a19fdb42cd
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ def migrate_preference(key, default):
|
|||
self.format_filename_cache = defaultdict(dict)
|
||||
for book_id, fmt, name in self.conn.get(
|
||||
'SELECT book,format,name FROM data'):
|
||||
self.format_filename_cache[book_id][fmt.upper()] = name
|
||||
self.format_filename_cache[book_id][fmt.upper() if fmt else ''] = name
|
||||
|
||||
self.conn.executescript('''
|
||||
DROP TRIGGER IF EXISTS author_insert_trg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue