cleanup file state
This commit is contained in:
parent
56b292619d
commit
c54f47590b
2 changed files with 2 additions and 4 deletions
|
|
@ -154,7 +154,8 @@ class File(models.Model):
|
|||
if self.is_subtitle:
|
||||
self.available = self.data and True or False
|
||||
else:
|
||||
self.available = self.streams.filter(source=None, available=True).count() > 0
|
||||
self.available = not self.uploading and \
|
||||
self.streams.filter(source=None, available=True).count() > 0
|
||||
super(File, self).save(*args, **kwargs)
|
||||
|
||||
#upload and data handling
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue