From 7c526803f06e2af19deb4fb76bc85229ac62496a Mon Sep 17 00:00:00 2001 From: justin melvin Date: Wed, 25 Nov 2020 21:22:47 -0800 Subject: [PATCH] Fix typo and make hyperlinks in the sheets work --- turbot/sheets.py | 2 +- turbot_lambda/turbot_lambda.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0