From 5c70a787986919b1a9560f5916cb2b38ae4d0a89 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 17 Feb 2021 05:12:52 -0600 Subject: [PATCH] Ensure Submission.update modifies votes column I forgot to actually add this in properly. --- bot/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/models.py b/bot/models.py index fb3b072..8bed641 100644 --- a/bot/models.py +++ b/bot/models.py @@ -191,6 +191,9 @@ class Submission(Base): message.guild.get_member(reaction_marker.user) ) + # Update the current list of votes + self.votes = list(current) + if len(to_remove) > 0: if report: report += ' ' report += f'Removed: {", ".join(map(str, to_remove))}'