From 2f87ea925e445d48cbce841610f765a04634ad4a Mon Sep 17 00:00:00 2001 From: ducklet Date: Tue, 2 Feb 2021 21:41:22 +0100 Subject: [PATCH] fix broadcasting added points --- public/buzzer.html | 6 +++--- quiz/quiz.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/buzzer.html b/public/buzzer.html index 3acea46..65be6fa 100644 --- a/public/buzzer.html +++ b/public/buzzer.html @@ -44,18 +44,18 @@ player name
(points pts) (tokens tks) - diff --git a/quiz/quiz.py b/quiz/quiz.py index 0a7566c..300cdab 100644 --- a/quiz/quiz.py +++ b/quiz/quiz.py @@ -305,7 +305,7 @@ async def handle_messages(client: Client): target.play_points = points elif mdata["type"] == "tokens": target.play_tokens = points - await broadcast_client(client) + await broadcast_client(target) elif mdata["type"] == "login": target_id = UserId(mdata["value"]["id"]) target = client.session.clients.get(target_id)