summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
22bf924)
Otherwise, the new puzzle will be pointing at the old puzzle's
solution list, (and the code that looks to see if the solution list
has changed won't notice any change).
This fixes things so that using "/solved" to add a second (or third,
...) to a puzzle will now update the channel's topic, which wasn't
happening before.
if 'tags' in old_puzzle:
new_puzzle['tags'] = old_puzzle['tags'].copy()
if 'tags' in old_puzzle:
new_puzzle['tags'] = old_puzzle['tags'].copy()
+ if 'solution' in old_puzzle:
+ new_puzzle['solution'] = old_puzzle['solution'].copy()
+