mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Ensure restrict to failed is never used when there are no failed ids
This commit is contained in:
parent
1882395837
commit
4fbd66561e
@ -269,6 +269,7 @@ class EditMetadataAction(InterfaceAction):
|
||||
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…
x
Reference in New Issue
Block a user