mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
71d9ac0adc
commit
a541776fb2
@ -20,13 +20,13 @@ def implementation(db, notify_changes, action, *args):
|
||||
name, val = args
|
||||
db.saved_search_add(name, val)
|
||||
if notify_changes is not None:
|
||||
notify_changes(saved_searches([('add', name)]))
|
||||
notify_changes(saved_searches(added=(name,)))
|
||||
return
|
||||
if action == 'remove':
|
||||
name = args[0]
|
||||
db.saved_search_delete(name)
|
||||
if notify_changes is not None:
|
||||
notify_changes(saved_searches([('remove', name)]))
|
||||
notify_changes(saved_searches(removed=(name,)))
|
||||
return
|
||||
|
||||
|
||||
|
@ -27,7 +27,5 @@ def metadata(book_ids):
|
||||
pass
|
||||
|
||||
|
||||
def saved_searches(changes):
|
||||
for change_type, saved_search_name in changes:
|
||||
# change_type is one of 'add' or 'remove'
|
||||
pass
|
||||
def saved_searches(added=(), removed=()):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user