puzzle['type'] = 'meta'
else:
puzzle['type'] = 'plain'
- rounds = [option['value'] for option in
- state['rounds']['rounds']['selected_options']]
- if rounds:
- puzzle['rounds'] = rounds
+ if 'rounds' in state:
+ rounds = [option['value'] for option in
+ state['rounds']['rounds']['selected_options']]
+ if rounds:
+ puzzle['rounds'] = rounds
new_rounds = state['new_rounds']['new_rounds']['value']
puzzle_state = state['state']['state']['value']
if puzzle_state:
def new_hunt_button(turb, payload):
"""Handler for the action of user pressing the new_hunt button"""
- print("In new_hunt_button with payload of: " + str(payload))
trigger_id = payload['trigger_id']
return new_hunt(turb, trigger_id)