From 6838a2f0f27b65b8b3ddd3e2d674306dcb12ff51 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 16 Jan 2016 12:33:58 +0530 Subject: [PATCH] fix return value for cancelDownloads, fixes #114 --- oml/item/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)