Skip to content

Commit 9765657

Browse files
committed
Lowercase the entire channel name for Slack
1 parent 07cdd4c commit 9765657

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

LearningAPI/views/team_maker_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def create(self, request):
7575
slack = SlackAPI()
7676
random_team_suffix = ''.join(random.choice(string.ascii_lowercase) for i in range(6))
7777
channel_name = f"{team_prefix}-{cohort.name.split(' ')[-1]}-{random_team_suffix}"
78+
# Lowercase the channel name
79+
channel_name = channel_name.lower()
7880
try:
7981
team.slack_channel = slack.create_channel(channel_name, student_list)
8082
except Exception as ex:

0 commit comments

Comments
 (0)