dont fail in cancelDownloads, fixes #158
This commit is contained in:
parent
9e7dcf75a8
commit
86a9fafad2
1 changed files with 4 additions and 3 deletions
|
@ -324,6 +324,7 @@ def cancelDownloads(data):
|
||||||
if ids:
|
if ids:
|
||||||
for item in models.Item.query.filter(models.Item.id.in_(ids)):
|
for item in models.Item.query.filter(models.Item.id.in_(ids)):
|
||||||
t = models.Transfer.get(item.id)
|
t = models.Transfer.get(item.id)
|
||||||
|
if t:
|
||||||
t.progress = None
|
t.progress = None
|
||||||
t.added = None
|
t.added = None
|
||||||
t.save()
|
t.save()
|
||||||
|
|
Loading…
Reference in a new issue