File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1021,12 +1021,18 @@ def get_all_users(self) -> List[Dict[str, Any]]:
1021
1021
for properties in self .user_dict .values ()
1022
1022
if properties ["status" ] == "inactive"
1023
1023
]
1024
+ bot = [
1025
+ properties
1026
+ for properties in self .user_dict .values ()
1027
+ if properties ["status" ] == "bot"
1028
+ ]
1024
1029
1025
1030
# Construct user_list from sorted components of each list
1026
1031
user_list = sorted (active , key = lambda u : u ["full_name" ].casefold ())
1027
1032
user_list += sorted (idle , key = lambda u : u ["full_name" ].casefold ())
1028
1033
user_list += sorted (offline , key = lambda u : u ["full_name" ].casefold ())
1029
1034
user_list += sorted (inactive , key = lambda u : u ["full_name" ].casefold ())
1035
+ user_list += sorted (bot , key = lambda u : u ["full_name" ].casefold ())
1030
1036
# Add current user to the top of the list
1031
1037
user_list .insert (0 , current_user )
1032
1038
self .user_dict [current_user ["email" ]] = current_user
You can’t perform that action at this time.
0 commit comments