game: fix: spectator can join

This commit is contained in:
2024-04-10 16:01:22 +00:00
parent 7d251a7bc9
commit 5bb7c99300
2 changed files with 7 additions and 4 deletions

View File

@ -16,7 +16,7 @@ from .Ball import Ball
class PongSpectator(ASpectator):
def __init__(self, user_id: int, socket: WebsocketConsumer, game: PongGame):
super().__init__(user_id, socket)
super().__init__(user_id, socket, game)
self.game: PongGame = game
def send_paddle(self, player: PongPlayer):