Account for failed chunks in completeness checks

This commit is contained in:
Kyle Maas 2023-12-21 15:30:39 +00:00
parent 04ee928f52
commit 5ec70adfce

View File

@ -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