]> git.cworth.org Git - turbot/commitdiff
Rename 'channel' to 'channel_id'
authorCarl Worth <cworth@cworth.org>
Fri, 16 Oct 2020 20:26:21 +0000 (13:26 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 16 Oct 2020 20:29:07 +0000 (13:29 -0700)
Tracking a change made to the (non-) schema of the database. Here
'channel_id' is more clear for how this is used, (where I would have
expected 'channel' to be the actual name of the channel).

turbot/views.py

index fdd5eeb64e6d1794adce6799cdf2ec2a0963e009..e05593dc69c1ef6c6e4bd21064d74d1cd8ed3433 100644 (file)
@@ -47,7 +47,7 @@ def input(label, name, placeholder):
     }
 
 def hunt_block(hunt):
-    text = "{}: <#{}>".format(hunt['name'], hunt['channel'])
+    text = "{}: <#{}>".format(hunt['name'], hunt['channel_id'])
     return section(text_block(text))
 
 def home(turb, user_id, body):