From: Carl Worth Date: Sat, 2 Jan 2021 05:22:21 +0000 (-0800) Subject: Fix storage of rounds for new puzzle creation X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=fe16f7c2cc97054403312bf2e6f5a046f5a3e8f9;p=turbot 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". --- 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,