Merge branch 'develop' into enhancement/AY-5648_Substance-work--publish-version-sync

This commit is contained in:
Kayla Man 2024-06-11 17:06:31 +08:00 committed by GitHub
commit 9f26718a6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,10 +202,10 @@ class ExtractOIIOTranscode(publish.Extractor):
added_representations = True
if added_representations:
self._mark_original_repre_for_deletion(repre, profile,
added_review)
self._mark_original_repre_for_deletion(
repre, profile, added_review
)
for repre in tuple(instance.data["representations"]):
tags = repre.get("tags") or []
if "delete" in tags and "thumbnail" not in tags:
instance.data["representations"].remove(repre)