From: Carl Worth Date: Wed, 12 Jan 2022 07:59:35 +0000 (-0800) Subject: Copy in the channel_url function X-Git-Url: https://git.cworth.org/git?p=turbot-web;a=commitdiff_plain;h=5eb6c0e95cb218e6aa7b7c61613e9a73d526549b Copy in the channel_url function To make turbot-web a little more self-contained. --- diff --git a/html_generator.py b/html_generator.py index 9b1b114..e75f148 100644 --- a/html_generator.py +++ b/html_generator.py @@ -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