Skip to content

Commit 589ac3d

Browse files
committed
added more information to comments or docstring
1 parent ac4001a commit 589ac3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ayon_api/server_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,8 @@ def get_user(
12431243
self, username: Optional[str] = None
12441244
) -> Optional[Dict[str, Any]]:
12451245
"""Get user info using REST endpoint.
1246+
1247+
User contains only explicitly set attributes in 'attrib'.
12461248
12471249
Args:
12481250
username (Optional[str]): Username.
@@ -1261,7 +1263,8 @@ def get_user(
12611263
response.raise_for_status()
12621264
user = response.data
12631265

1264-
# NOTE This would fill all missing attributes with 'None'
1266+
# NOTE Server does return only filled attributes right now.
1267+
# This would fill all missing attributes with 'None'.
12651268
# for attr_name in self.get_attributes_for_type("user"):
12661269
# user["attrib"].setdefault(attr_name, None)
12671270

0 commit comments

Comments
 (0)