merging with main ok

This commit is contained in:
CHIBOUB Chakib
2024-09-11 15:34:52 +02:00
7 changed files with 420 additions and 49 deletions

View File

@@ -241,7 +241,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: