aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Bluenix <[email protected]>2021-12-13 17:59:48 +0100
committerGravatar Shom770 <[email protected]>2022-02-09 18:13:37 -0500
commit56d0786ead74a32e4fab3b74eef225292407d9cc (patch)
treef8379c6e1c0f6e0a0897fe754fcefad4e4593225 /bot
parentRestructure trivia night game around new Question representation (diff)
Fix incorrect variable usage in list comprehension
This appears to stem from a misunderstanding by me when restructuring the code.
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/events/trivianight/_questions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/events/trivianight/_questions.py b/bot/exts/events/trivianight/_questions.py
index 1d7bd4a9..9a2cb7d2 100644
--- a/bot/exts/events/trivianight/_questions.py
+++ b/bot/exts/events/trivianight/_questions.py
@@ -130,7 +130,7 @@ class QuestionView(View):
if len(guesses) != 0:
answers_chosen = {
answer_choice: len(
- tuple(filter(lambda x: x[0] == correct, guesses.values()))
+ tuple(filter(lambda x: x[0] == answer_choice, guesses.values()))
) / len(guesses)
for answer_choice in labels
}