From: justin melvin Date: Thu, 26 Nov 2020 05:22:47 +0000 (-0800) Subject: Fix typo and make hyperlinks in the sheets work X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=7c526803f06e2af19deb4fb76bc85229ac62496a;p=turbot Fix typo and make hyperlinks in the sheets work --- diff --git a/turbot/sheets.py b/turbot/sheets.py index fbe9e3d..0ed6847 100644 --- a/turbot/sheets.py +++ b/turbot/sheets.py @@ -57,7 +57,7 @@ def sheets_create_for_puzzle(turb, puzzle): insertDataOption='INSERT_ROWS', body={ 'range': 'A1:A2', - 'values': [[url_text], [channel_url_text]] + 'values': [['=HYPERLINK('+url_text+')'], ['=HYPERLINK('+channel_url_text+')']] }).execute() # Copy some sheets from the Template spreadsheet diff --git a/turbot_lambda/turbot_lambda.py b/turbot_lambda/turbot_lambda.py index 7d8ac4d..b2acf41 100644 --- a/turbot_lambda/turbot_lambda.py +++ b/turbot_lambda/turbot_lambda.py @@ -153,7 +153,7 @@ def turbot_interactive_or_slash_command(turb, event, context): """Handler for Slack interactive things (buttons, shortcuts, etc.) as well as slash commands. - This function simply makes a quiuck determination of what we're looking + This function simply makes a quick determination of what we're looking at and then defers to either turbot_interactive or turbot_slash_command.""" # Both interactives and slash commands have a urlencoded body