remove item

This commit is contained in:
j 2014-05-18 12:46:56 +02:00
parent 30357763e8
commit 94443ee667

View file

@ -181,7 +181,7 @@ def cancelDownloads(request):
if p in item.users: if p in item.users:
item.users.remove(p) item.users.remove(p)
for l in item.lists.filter_by(user_id=settings.USER_ID): for l in item.lists.filter_by(user_id=settings.USER_ID):
l.remove(item) l.items.remove(item)
item.update() item.update()
response = {'status': 'cancelled'} response = {'status': 'cancelled'}
return response return response