]> git.cworth.org Git - turbot/commitdiff
Collapse link text inserted into sheets
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 15:31:13 +0000 (07:31 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 15:44:48 +0000 (07:44 -0800)
Since we have functional links here we don't need to include the full
URL as part of the link text.

turbot/sheets.py

index 341a79285bba9618185422ddcca90ea53719dd90..37bd363ac8a85270d90df6d16b4415b47dd72bf2 100644 (file)
@@ -77,14 +77,14 @@ def sheets_create_for_puzzle(turb, puzzle):
     # Insert some useful links into the sheet where expected
     if 'url' in puzzle:
         url_link = puzzle['url']
-        url_text = "Original puzzle is at: {}".format(url_link)
+        url_text = "Original puzzle link"
         spreadsheet_insert_data(
             turb, spreadsheet_id, "B1:B1",
             '=HYPERLINK("{}","{}")'.format(url_link, url_text))
 
     if 'channel_url' in puzzle:
         url_link = puzzle['channel_url']
-        url_text = "Discussion for this puzzle is at: {}".format(url_link)
+        url_text = "Slack channel link"
         spreadsheet_insert_data(
             turb, spreadsheet_id, "B2:B2",
             '=HYPERLINK("{}","{}")'.format(url_link, url_text))