set asset_type on project / assets

This commit is contained in:
2023-04-04 12:21:45 +02:00
parent ecde009de1
commit 02f374af55
5 changed files with 21 additions and 11 deletions
@@ -55,9 +55,9 @@ class TrackerTest(Tracker):
def get_shots_metadata(self, project):
metadata = []
for md in gazu.project.all_metadata_descriptors(project):
entity_type = md.get('entity_type')
asset_type = md.get('asset_type')
field_name = md.get('field_name')
if entity_type and entity_type.lower() == 'shot' and field_name:
if asset_type and asset_type.lower() == 'shot' and field_name:
metadata.append(field_name)
return metadata