fix return value for cancelDownloads, fixes #114
This commit is contained in:
parent
6692e9f3a8
commit
6838a2f0f2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue