From 5eb6c0e95cb218e6aa7b7c61613e9a73d526549b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 11 Jan 2022 23:59:35 -0800 Subject: [PATCH] Copy in the channel_url function To make turbot-web a little more self-contained. --- html_generator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.43.0