downloads can be accessed from tasks, start it earlier
This commit is contained in:
parent
9dda2f7303
commit
030563c933
2 changed files with 5 additions and 4 deletions
|
|
@ -584,8 +584,9 @@ class Item(db.Model):
|
|||
else:
|
||||
self.added = None
|
||||
self.update()
|
||||
if self.id in state.downloads.transfers:
|
||||
del state.downloads.transfers[self.id]
|
||||
if state.downloads:
|
||||
if self.id in state.downloads.transfers:
|
||||
del state.downloads.transfers[self.id]
|
||||
Changelog.record(user, 'removeitem', self.id)
|
||||
|
||||
class Sort(db.Model):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue