diff --git a/oml/item/api.py b/oml/item/api.py index 39ca9a8..c0aa61c 100644 --- a/oml/item/api.py +++ b/oml/item/api.py @@ -302,7 +302,7 @@ def download(data): if item: item.queue_download() item.update() - response = {'status': 'queued'} + response = {'queued': data['id']} return response actions.register(download, cache=False) @@ -327,7 +327,7 @@ def cancelDownloads(data): for l in item.lists.filter_by(user_id=settings.USER_ID): l.items.remove(item) item.update() - response = {'status': 'cancelled'} + response = {'cancelled': ids} return response actions.register(cancelDownloads, cache=False)