aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/events/trivianight/_questions.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/events/trivianight/_questions.py')
-rw-r--r--bot/exts/events/trivianight/_questions.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bot/exts/events/trivianight/_questions.py b/bot/exts/events/trivianight/_questions.py
index 7fb6dedf..0835d762 100644
--- a/bot/exts/events/trivianight/_questions.py
+++ b/bot/exts/events/trivianight/_questions.py
@@ -7,7 +7,6 @@ from discord.ui import Button, View
from bot.constants import Colours, NEGATIVE_REPLIES
-from . import UserScore
from ._game import AlreadyUpdated, Question, QuestionClosed
from ._scoreboard import Scoreboard
@@ -154,18 +153,18 @@ class QuestionView(View):
for user_id, answer in guesses.items():
if dict(self.question.answers)[answer[0]] == self.question.correct:
scoreboard.assign_points(
- UserScore(int(user_id)),
+ int(user_id),
points=(1 - (answer[-1] / self.question.time) / 2) * self.question.max_points,
speed=answer[-1]
)
elif answer[-1] <= 2:
scoreboard.assign_points(
- UserScore(int(user_id)),
+ int(user_id),
points=-(1 - (answer[-1] / self.question.time) / 2) * self.question.max_points
)
else:
scoreboard.assign_points(
- UserScore(int(user_id)),
+ int(user_id),
points=0
)