Skip to content

Commit 405bf0c

Browse files
committed
make sure all attributes are filled
1 parent 25fd603 commit 405bf0c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ayon_api/_api_helpers/projects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ def get_rest_project(
162162
if response.status != 200:
163163
return None
164164
project = response.data
165+
attrib = project["attrib"]
166+
for attr_name in self.get_attributes_for_type("project"):
167+
attrib.setdefault(attr_name, None)
165168
self._fill_project_entity_data(project)
166169
return project
167170

0 commit comments

Comments
 (0)