summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/AnswerModal.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/AnswerModal.py b/components/AnswerModal.py
index 9d7b1cb..363c4b3 100644
--- a/components/AnswerModal.py
+++ b/components/AnswerModal.py
@@ -77,6 +77,7 @@ class Answer(Modal, title="Submit Answer"):
INSERT INTO CategoryBreakdown(userId, {category}_incorrect) VALUES (?, 0)
ON CONFLICT(userId) DO UPDATE SET {category}_incorrect={category}_incorrect+1
""", interaction.user.id)
+ await db.disconnect()
await c.aclose()
class SoloAnswer(Modal, title="Submit Answer"):