mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 09:44:32 +01:00
Account for failed chunks in completeness checks
This commit is contained in:
parent
04ee928f52
commit
5ec70adfce
@ -1478,7 +1478,7 @@ def encoding_file_save(sender, instance, created, **kwargs):
|
|||||||
break
|
break
|
||||||
|
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
if not (chunk.media_file and chunk.media_file.path) or chunk.status != "success":
|
if not (chunk.media_file and chunk.media_file.path) or not (chunk.status in ["fail", "success"]):
|
||||||
complete = False
|
complete = False
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user