From 686bc23593be68638b3c6470e0a97a2dbb590b61 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Apr 2017 10:45:54 +0530 Subject: [PATCH] ... --- src/calibre/db/cli/cmd_add_format.py | 2 +- src/calibre/srv/changes.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/db/cli/cmd_add_format.py b/src/calibre/db/cli/cmd_add_format.py index f3f7cb1042..f516355f00 100644 --- a/src/calibre/db/cli/cmd_add_format.py +++ b/src/calibre/db/cli/cmd_add_format.py @@ -18,7 +18,7 @@ def implementation(db, notify_changes, book_id, data, fmt, replace): data = BytesIO(data[1]) added = db.add_format(book_id, fmt, data, replace=replace) if is_remote and added: - notify_changes(formats_added({book_id: fmt})) + notify_changes(formats_added({book_id: (fmt,)})) return added diff --git a/src/calibre/srv/changes.py b/src/calibre/srv/changes.py index 03c9b33746..b2c3d8980f 100644 --- a/src/calibre/srv/changes.py +++ b/src/calibre/srv/changes.py @@ -10,10 +10,12 @@ def books_added(book_ids): def formats_added(formats_map): + # formats_map: {book_id:(fmt1, fmt2)} pass def formats_removed(formats_map): + # formats_map: {book_id:(fmt1, fmt2)} pass