]> git.cworth.org Git - turbot/commit - turbot/interaction.py
Rename primary-key attribute from PK to hunt_id
authorCarl Worth <cworth@cworth.org>
Thu, 31 Dec 2020 20:05:13 +0000 (12:05 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 31 Dec 2020 20:05:13 +0000 (12:05 -0800)
commit1d7ffdfcea3c8840fca9693427a1e4ef5eceec5d
tree7fb3bc7964588f29fadc2119ae57753e065bbe5f
parent83cb7e7717f1407ecc525bcc290489b7ce2480b0
Rename primary-key attribute from PK to hunt_id

I was just about to add a separate attribut to every item in the
database named hunt_id when I realized that that was totally redundant
with our existing PK attribute (whose values were simply the hunt_id
prefixed by "hunt-" in all cases).

Since we're not using the PK field in any generalized sense, (that is,
it's _always_ populated with the hunt_id value), it's much simpler and
more efficient to just name it "hunt_id" and store the hunt_id valeu
ther directly (without any prefix).
turbot/events.py
turbot/interaction.py