]> git.cworth.org Git - turbot/commitdiff
Fix storage of rounds for new puzzle creation
authorCarl Worth <cworth@cworth.org>
Sat, 2 Jan 2021 05:22:21 +0000 (21:22 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 2 Jan 2021 05:22:21 +0000 (21:22 -0800)
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

index dfe99c15059cc1060c798186e72eb8372d882fb3..d8a252b316d13363d45950adf8b8ad2169f1ba17 100644 (file)
@@ -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,