mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 18:54:12 +02:00
Ensure restrict to failed is never used when there are no failed ids
This commit is contained in:
parent
1882395837
commit
4fbd66561e
1 changed files with 1 additions and 0 deletions
|
|
@ -269,6 +269,7 @@ def get_metadata(book_id):
|
|||
id_map = {}
|
||||
|
||||
restrict_to_failed = restrict_to_failed or bool(args and args[0])
|
||||
restrict_to_failed = restrict_to_failed and bool(failed_ids)
|
||||
if restrict_to_failed:
|
||||
db.data.set_marked_ids(failed_ids)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue