summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a9f4ac0)
I don't think the type actually mattered anywhere here, but it might have.
(Leave it to python and its annoying type unsafety to be unhelpful here.)
solved = True
solution_str = None
solved = True
solution_str = None
- solution_list = puzzle.get("solution", ())
+ solution_list = puzzle.get("solution", [])
if solution_list:
solution_str = ", ".join(solution_list)
if solution_list:
solution_str = ", ".join(solution_list)
puzzle['status'] = 'solved'
else:
puzzle['status'] = 'unsolved'
puzzle['status'] = 'solved'
else:
puzzle['status'] = 'unsolved'
- puzzle['solution'] = ()
+ puzzle['solution'] = []
solution = state['solution']['solution']['value']
if solution:
# Construct a list from a set to avoid any duplicates
solution = state['solution']['solution']['value']
if solution:
# Construct a list from a set to avoid any duplicates
if rounds:
puzzle['rounds'] = rounds
if rounds:
puzzle['rounds'] = rounds
- puzzle['solution'] = ()
+ puzzle['solution'] = []
puzzle['status'] = 'unsolved'
# Create a channel for the puzzle
puzzle['status'] = 'unsolved'
# Create a channel for the puzzle