File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1188,8 +1188,13 @@ def get_users(
1188
1188
1189
1189
for parsed_data in query .continuous_query (self ):
1190
1190
for user in parsed_data ["users" ]:
1191
- user ["accessGroups" ] = json .loads (
1192
- user ["accessGroups" ])
1191
+ access_groups = user .get ("accessGroups" )
1192
+ if isinstance (access_groups , str ):
1193
+ user ["accessGroups" ] = json .loads (access_groups )
1194
+ all_attrib = user .get ("allAttrib" )
1195
+ if isinstance (all_attrib , str ):
1196
+ user ["allAttrib" ] = json .loads (all_attrib )
1197
+ fill_own_attribs (user )
1193
1198
yield user
1194
1199
1195
1200
def get_user_by_name (
@@ -1246,7 +1251,9 @@ def get_user(
1246
1251
1247
1252
response = self .get (f"users/{ username } " )
1248
1253
response .raise_for_status ()
1249
- return response .data
1254
+ user = response .data
1255
+ fill_own_attribs (user )
1256
+ return user
1250
1257
1251
1258
def get_headers (
1252
1259
self , content_type : Optional [str ] = None
You can’t perform that action at this time.
0 commit comments