From 3360344b64b781930e81770bc3b40bba502fe907 Mon Sep 17 00:00:00 2001 From: suhas Date: Sun, 19 Nov 2023 15:19:37 -0600 Subject: remove weird answer thing --- components/AnswerModal.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'components') 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}, -- cgit 1.4.1-2-gfad0