From b969d89fc05d73a5bf7aabfda6cfdf8242d93be4 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 19:27:34 +0100 Subject: [PATCH] modules/TACommandJoinAdmins.py --- modules/TACommandJoinAdmins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/TACommandJoinAdmins.py b/modules/TACommandJoinAdmins.py index 792f487..83b40e1 100644 --- a/modules/TACommandJoinAdmins.py +++ b/modules/TACommandJoinAdmins.py @@ -16,9 +16,9 @@ class TACommandJoinAdmins(AbstractCommand): def on_POST(self, request, data): self._require_team_admin(data) # will throw an exception if not. (Dont try-except: Its handled up the stack.) - user_ids = [u["user_id"] for u in self.bot.api.get_team_members(data['team_id']) if "team_admin" in u["roles"]] + user_ids = [user["user_id"] for user in self.bot.api.get_team_members(data['team_id']) if "team_admin" in user["roles"]] - for u in user_ids: - self.bot.api.add_user_to_channel(data["channel_id"], u) + for user in user_ids: + self.bot.api.add_user_to_channel(data["channel_id"], user) request.respond_cmd_temp("## :white_check_mark: Success! :)") -- 2.43.0