]> git.cworth.org Git - turbot/commit
Use consistent channel naming at puzzle creation time
authorCarl Worth <cworth@cworth.org>
Tue, 12 Jan 2021 01:56:47 +0000 (17:56 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 12 Jan 2021 02:02:18 +0000 (18:02 -0800)
commit7d98a0d74781c4771907952b0a2dcaf06d638664
tree2efd16dc45c1d64c27489f0351cfde0fbda0da49
parentd63943a1adccccda1ddf43e609701a0615577670
Use consistent channel naming at puzzle creation time

We've had a bug for some time where the puzzle editing code would
construct a name for the puzzle channel based on hunt, and round, and
puzzle type, and puzzle_id but the puzzle creation code was only using
hunt and puzzle_id.

In this commit, we fix the puzzle creation code to use the same
puzzle_channel_name function so that channel names are created
consistently.

This commit also adds a check to reject a puzzle if it has the same
puzzle_id as an existing puzzle.
turbot/interaction.py