improving code coment

This commit is contained in:
Jakub Jezek 2023-11-21 17:33:55 +01:00
parent e0776c8548
commit 2f78943791
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -89,8 +89,8 @@ class ExtractBurnin(publish.Extractor):
self.main_process(instance)
# Remove any representations tagged for deletion.
# QUESTION Is possible to have representation with "delete" tag?
# Remove only representation tagged with both
# tags `delete` and `burnin`
for repre in tuple(instance.data["representations"]):
if all(x in repre.get("tags", []) for x in ['delete', 'burnin']):
self.log.debug("Removing representation: {}".format(repre))