From b1f40c9904ebbe46784d5ec0abbf84038c625d83 Mon Sep 17 00:00:00 2001 From: suhas Date: Thu, 16 Nov 2023 23:15:50 -0600 Subject: add disconnect statements --- components/AnswerModal.py | 1 + 1 file changed, 1 insertion(+) 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"): -- cgit 1.4.1-2-gfad0 value='master'>master Community notes board for shared UNIX systemsgbmor <ben@gbmor.dev>
summary refs log blame commit diff stats
path: root/LICENSE
blob: b39f5cde98c7c4f4558d1e6156baec509f2a7668 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15