avoid async, fails in python3.7
This commit is contained in:
parent
5cd106c08a
commit
7864ca1f70
2 changed files with 4 additions and 4 deletions
|
|
@ -1361,7 +1361,7 @@ class Item(models.Model):
|
|||
qs = qs.order_by('file__part', 'file__sort_path')
|
||||
return qs
|
||||
|
||||
def update_timeline(self, async=True):
|
||||
def update_timeline(self, async_=True):
|
||||
streams = self.streams()
|
||||
self.make_timeline()
|
||||
if streams.count() == 1:
|
||||
|
|
@ -1391,7 +1391,7 @@ class Item(models.Model):
|
|||
self.rendered = streams.count() > 0
|
||||
self.save()
|
||||
if self.rendered:
|
||||
if async:
|
||||
if async_:
|
||||
get_sequences.delay(self.public_id)
|
||||
else:
|
||||
get_sequences(self.public_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue