Punktevergabe fix Fragetyp:order
This commit is contained in:
@@ -246,6 +246,7 @@ class GameConsumer(AsyncWebsocketConsumer):
|
||||
base_score = 1000
|
||||
time_factor = time_remaining / int(current_question.time_per_question) / 1000
|
||||
score = int(base_score * (0.75 + 0.25 * time_factor))*score_percentage
|
||||
print(score)
|
||||
|
||||
# Antwort speichern oder aktualisieren
|
||||
answer_obj, created = QuizAnswer.objects.get_or_create(
|
||||
|
||||
Reference in New Issue
Block a user