diff --git a/src/calibre/db/cli/cmd_saved_searches.py b/src/calibre/db/cli/cmd_saved_searches.py index 62949836f3..fd31051782 100644 --- a/src/calibre/db/cli/cmd_saved_searches.py +++ b/src/calibre/db/cli/cmd_saved_searches.py @@ -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 diff --git a/src/calibre/srv/changes.py b/src/calibre/srv/changes.py index 4d7d413161..49b7276a19 100644 --- a/src/calibre/srv/changes.py +++ b/src/calibre/srv/changes.py @@ -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