summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsuhas <hi@suhas.one>2023-11-16 23:17:53 -0600
committersuhas <hi@suhas.one>2023-11-16 23:17:53 -0600
commitf75eb0581364dd96f0b58cbdfdc4021efb75bcc3 (patch)
tree7e218664b48b8edbcc3502cae46150ff1b160b7b
parentb1f40c9904ebbe46784d5ec0abbf84038c625d83 (diff)
downloadqbb-f75eb0581364dd96f0b58cbdfdc4021efb75bcc3.tar.gz
fix issues?
-rw-r--r--components/AnswerModal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/AnswerModal.py b/components/AnswerModal.py
index 363c4b3..e5b394c 100644
--- a/components/AnswerModal.py
+++ b/components/AnswerModal.py
@@ -51,7 +51,7 @@ class Answer(Modal, title="Submit Answer"):
                     item.disabled = True
             self.stop_working = True
             await interaction.response.edit_message(embed=e, view=self.view)
-            await User.prisma().upsert(where={'id': interaction.user.id}, data={
+            await db.user.upsert(where={'id': interaction.user.id}, data={
                 'create': {'questions_correct': 1, 'id': interaction.user.id, 'questions_incorrect': 0},
                 'update': {'questions_correct': {'increment': 1}}
             })
@@ -65,7 +65,7 @@ class Answer(Modal, title="Submit Answer"):
         else:
             await interaction.response.send_message(f"Incorrect! You've been locked out from the question. The correct answer was {self.view.tossup['answer']}", ephemeral=True)
             self.view.already_answered.append(interaction.user.id)
-            await User.prisma().upsert(
+            await db.user.upsert(
                 where={'id': interaction.user.id},
                 data={
                     'create': {'questions_correct': 0, 'id': interaction.user.id, 'questions_incorrect': 1},