]> git.cworth.org Git - turbot/commit
Use a deep copy when comparing a puzzle to detect state modifications
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 13:16:20 +0000 (05:16 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 13:35:42 +0000 (05:35 -0800)
commit3385d460742786491db31c1587a86886a3e1b6c8
treef687a836aaba4f7af0120d0bb83cf7bd1273935c
parent1efdf784442e0bfc0fb96a18ec833e2801af7973
Use a deep copy when comparing a puzzle to detect state modifications

Since the recent tags is an array, we need a deep copy of the puzzle dict
in order to be able to reliably compare the puzzle prior to the copy with
the one after the copy where a tag has been added or removed.

With this fix, adding or removing a tag now reliably updates the channel
description.
turbot/interaction.py
turbot/puzzle.py