avoid creating Clip multiple times
This commit is contained in:
parent
1cd7c52ab6
commit
488b5431de
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class MetaClip:
|
|||
end = float('%0.03f' % end)
|
||||
qs = cls.objects.filter(item=item, start=start, end=end)
|
||||
if qs.count() == 0:
|
||||
clip = Clip(item=item, start=start, end=end)
|
||||
clip, created = cls.objects.get_or_create(item=item, start=start, end=end)
|
||||
clip.save()
|
||||
created = True
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue