]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Make /solved clear the state string for a puzzle
[turbot] / turbot / interaction.py
index f2a35ee13066a8d8cdafc5c66d8f8c6db72ea134..8ccd24755af036114326b77af30de595e8cd91fe 100644 (file)
@@ -567,6 +567,7 @@ def solved(turb, body, args):
     # Set the status and solution fields in the database
     puzzle['status'] = 'solved'
     puzzle['solution'].append(args)
+    del puzzle['state']
     turb.table.put_item(Item=puzzle)
 
     # Report the solution to the puzzle's channel