From 927a6259a26c676ba78afda2043d247ff88a656d Mon Sep 17 00:00:00 2001 From: Stefan Dworschak Date: Tue, 8 Oct 2024 14:35:32 +0100 Subject: [PATCH] Update where admins come from --- hackathon/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hackathon/tasks.py b/hackathon/tasks.py index 2f4fbf65..0d82852a 100644 --- a/hackathon/tasks.py +++ b/hackathon/tasks.py @@ -77,7 +77,7 @@ def create_new_hackathon_slack_channel(hackathon_id, channel_name): logger.info(f"Channel with id {channel} created.") # Add admins to channel for administration purposes - users = [admin.username for admin in slack_site_settings.slack_admins.all()] + users = [admin.username for admin in hackathon.channel_admins.all()] # First need to add Slack Bot to then add users to channel response = admin_client.invite_users_to_slack_channel( users=settings.SLACK_BOT_ID,