From fe16f7c2cc97054403312bf2e6f5a046f5a3e8f9 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 1 Jan 2021 21:22:21 -0800 Subject: [PATCH] Fix storage of rounds for new puzzle creation To store an array of strings rather than storing each character from the round string as an individual round (oops!). That is, before this fix, if the user typed a round name of "Colors" the database would store a rounds array for the puzzle with values of "C", "o", "l", "o", "r", and "s". --- turbot/interaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbot/interaction.py b/turbot/interaction.py index dfe99c1..d8a252b 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -466,7 +466,7 @@ def puzzle_submission(turb, payload, metadata): # Add any new rounds to the database if new_rounds: for round in new_rounds.split(','): - rounds += round + rounds.append(round) turb.table.put_item( Item={ 'hunt_id': hunt_id, -- 2.43.0