This commit is contained in:
Kovid Goyal 2017-04-30 10:45:54 +05:30
parent ea39d22212
commit 686bc23593
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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