]> git.cworth.org Git - turbot-web/commitdiff
Copy in the channel_url function
authorCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 07:59:35 +0000 (23:59 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 07:59:35 +0000 (23:59 -0800)
To make turbot-web a little more self-contained.

html_generator.py

index 9b1b1147bb966012b97aeef4331aefb0899fa27a..e75f14836921015be8247fa1ea5d25a153d12b71 100644 (file)
@@ -14,12 +14,16 @@ that would be great
 
 Requires sorttable.js, which should be included
 """
-from turbot.channel import channel_url
 from boto3.dynamodb.conditions import Key
 
 website = "https://halibut.cworth.org/"
 #change this if we're using AWS or some other subdomain instead
 
+def channel_url(channel_id):
+    """Given a channel ID, return the URL for that channel."""
+
+    return "https://halibutthatbass.slack.com/archives/{}".format(channel_id)
+
 def find_hunt_for_hunt_id(turb, hunt_id):
     """Given a hunt ID find the database item for that hunt