summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.idea/vcs.xml1
-rw-r--r--components/AnswerModal.py4
2 files changed, 0 insertions, 5 deletions
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index 7d0de90..35eb1dd 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -2,6 +2,5 @@
 <project version="4">
   <component name="VcsDirectoryMappings">
     <mapping directory="" vcs="Git" />
-    <mapping directory="$PROJECT_DIR$/src/asqlite" vcs="Git" />
   </component>
 </project>
\ No newline at end of file
diff --git a/components/AnswerModal.py b/components/AnswerModal.py
index f53a344..154c5ad 100644
--- a/components/AnswerModal.py
+++ b/components/AnswerModal.py
@@ -15,7 +15,6 @@ class Answer(Modal, title="Submit Answer"):
     def __init__(self, correct_answer: str, view: TossupButtons) -> None:
         self.correct_answer = correct_answer
         self.view = view
-        self.stop_working = False
         super().__init__()
 
     answer = TextInput(label="Answer", placeholder="Your answer here")
@@ -34,8 +33,6 @@ class Answer(Modal, title="Submit Answer"):
         await db.connect()
 
         if answer_check_data["directive"] == "accept":
-            if self.stop_working:
-                return await interaction.response.send_message('Someone has already answered this correctly!', ephemeral=True)
             if interaction.message is None:
                 return 
             e = interaction.message.embeds[0]
@@ -49,7 +46,6 @@ class Answer(Modal, title="Submit Answer"):
             for item in items:
                 if isinstance(item, Button):
                     item.disabled = True
-            self.stop_working = True
             await interaction.response.edit_message(embed=e, view=self.view)
             await db.user.upsert(where={'id': interaction.user.id}, data={
                 'create': {'questions_correct': 1, 'id': interaction.user.id, 'questions_incorrect': 0},