From 6fe04c2dc64b09bb0b8bbe7885781358c28b0810 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 9 Jan 2021 07:31:13 -0800 Subject: [PATCH] Collapse link text inserted into sheets Since we have functional links here we don't need to include the full URL as part of the link text. --- turbot/sheets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turbot/sheets.py b/turbot/sheets.py index 341a792..37bd363 100644 --- a/turbot/sheets.py +++ b/turbot/sheets.py @@ -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)) -- 2.43.0