dont fail in cancelDownloads, fixes #158

This commit is contained in:
j 2016-01-20 12:23:18 +05:30
parent 9e7dcf75a8
commit 86a9fafad2
1 changed files with 4 additions and 3 deletions

View File

@ -324,6 +324,7 @@ def cancelDownloads(data):
if ids:
for item in models.Item.query.filter(models.Item.id.in_(ids)):
t = models.Transfer.get(item.id)
if t:
t.progress = None
t.added = None
t.save()