summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsuhas <hi@suhas.one>2023-11-16 23:15:50 -0600
committersuhas <hi@suhas.one>2023-11-16 23:15:50 -0600
commitb1f40c9904ebbe46784d5ec0abbf84038c625d83 (patch)
treed204a0ff5502d37ca2fb3877526ac71c46d1a88e
parent2e38b5aefb08abdd34d5244d0998274e5f35ff3e (diff)
downloadqbb-b1f40c9904ebbe46784d5ec0abbf84038c625d83.tar.gz
add disconnect statements
-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"):