forked from 0x2620/pandora
items move
This commit is contained in:
parent
110c57d726
commit
e1bcb7e348
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,12 @@ class Task(models.Model):
|
|||
task.save()
|
||||
|
||||
def update(self, save=True):
|
||||
from item.models import Item
|
||||
try:
|
||||
item = self.item.id
|
||||
except Item.DoesNotExist:
|
||||
return False
|
||||
|
||||
if self.item.files.filter(wanted=True, available=False).count():
|
||||
status = 'pending'
|
||||
elif self.item.files.filter(uploading=True).count():
|
||||
|
|
Loading…
Reference in a new issue