From ccb0cafe4b79969fad079c61b64f147a1a969204 Mon Sep 17 00:00:00 2001 From: Theouche Date: Wed, 18 Sep 2024 16:09:55 +0200 Subject: [PATCH] final merge chaku --- pong/game/tournament.py | 2 +- pong/static/game.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pong/game/tournament.py b/pong/game/tournament.py index 1ff73d4..708bacb 100644 --- a/pong/game/tournament.py +++ b/pong/game/tournament.py @@ -206,7 +206,7 @@ class TournamentMatchMaker: await sync_to_async(update_tournament)(self.final_name, winner_username) player_list = [player.user.username for player in self.waiting_players] - write_data(player_list, winner_username) + await sync_to_async(write_data)(player_list, winner_username) # Reset tournament state self.waiting_players = [] diff --git a/pong/static/game.js b/pong/static/game.js index 0d2b786..1ae198d 100644 --- a/pong/static/game.js +++ b/pong/static/game.js @@ -131,6 +131,8 @@ document.addEventListener('DOMContentLoaded', () => { registerForm.style.display = 'none'; document.getElementById("post-form-buttons").style.display = 'block'; history.pushState({ view: 'post-form-buttons' }, '', `#${'post-form-buttons'}`); + burgerMenu.style.display = 'block'; + logo.style.display = 'none'; } else { alert('Registration failed. Please try again.'); }