mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression in previous release that broke copying of book to another library if the books author does not exist in the destination database.
This commit is contained in:
parent
8d95d74355
commit
f0e42c3bf3
@ -286,7 +286,7 @@ class ManyToOneTable(Table):
|
||||
for iid, name in self.id_map.items():
|
||||
if icu_lower(name) == q:
|
||||
return {item_names[0]: iid}
|
||||
return {item_names[0]: iid}
|
||||
return {item_names[0]: None}
|
||||
rmap = {icu_lower(v) if isinstance(v, str) else v:k for k, v in self.id_map.items()}
|
||||
return {name: rmap.get(icu_lower(name) if isinstance(name, str) else name, None) for name in item_names}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user