]> git.cworth.org Git - turbot/commitdiff
Use a clean name for the hunt's sheet as well
authorCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2020 13:49:02 +0000 (06:49 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2020 13:49:02 +0000 (06:49 -0700)
Just as we did for the puzzle's sheet in the previous commit.

turbot/events.py

index feb0514a7a841c5a36ec8ca248ce1b814924f4e8..8d70a21d45634053ddd836ce5a98a1059806667e 100644 (file)
@@ -148,8 +148,8 @@ def hunt_channel_created(turb, channel_name, channel_id):
         "Welcome to the channel for the {} hunt! ".format(item['name'])
         + "Please wait a minute or two while I create some backend resources.")
 
-    # Create a sheet for the channel
-    sheet = turbot.sheets.sheets_create(turb, channel_name)
+    # Create a sheet for the hunt
+    sheet = turbot.sheets.sheets_create(turb, item['name'])
 
     # Update the database with the URL of the sheet
     item['sheet_url'] = sheet['url']