Merge branch 'main' into theouche

This commit is contained in:
Theouche
2024-09-11 15:09:04 +02:00
7 changed files with 9 additions and 125 deletions

View File

@@ -244,7 +244,7 @@ class Game:
if not self.localgame:
await self.player2.send(end_message)
if hasattr(self, 'tournament'):
await sync_to_async(handle_game_data)(self.game_state['player1_name'], self.game_state['player2_name'],
await sync_to_async(handle_game_data)(self.game_state['player1_name'], self.game_state['player2_name'],
self.game_state['player1_score'], self.game_state['player2_score'],
self.bt1, self.bt2, duration, True, self.tournament.tournoi_reg)
else: