diff --git a/django/play/consumers/game.py b/django/play/consumers/game.py index 484fe7f..985412b 100644 --- a/django/play/consumers/game.py +++ b/django/play/consumers/game.py @@ -188,7 +188,7 @@ class GameConsumer(AsyncWebsocketConsumer): question_data = json.loads(current_question.data) print(answer_index) try: - #if answer_index >= 0 : # -1 means timeout + if answer_index >= 0 : # -1 means timeout is_correct = question_data['options'][answer_index]['is_correct'] print(is_correct) except: diff --git a/django/templates/play/game/score_overview.html b/django/templates/play/game/score_overview.html index b75eed5..bf17498 100644 --- a/django/templates/play/game/score_overview.html +++ b/django/templates/play/game/score_overview.html @@ -10,10 +10,16 @@
{{ question_data.question }}
{{ option.value }}
-0 Antworten
-{{ option.value }}
+0 Antworten
+ +{{ participant.score }} Punkte
+{{ participant.score }} Punkte
{% if participant.last_answer_correct %} ✓ @@ -66,6 +72,7 @@ {% block extra_js %} {% if is_last_question %} +