From c603cb79e7ba7fdbb101a506e36f6d8d70b3a8f4 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 16 Apr 2021 17:07:05 +0200 Subject: converted all tabs to spaces in python --- api/game/socket.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'api/game') diff --git a/api/game/socket.py b/api/game/socket.py index eded965..09b2151 100644 --- a/api/game/socket.py +++ b/api/game/socket.py @@ -12,17 +12,17 @@ games = {} def participants_only(func): ''' - listener should have two parameters: - listener(data: socket.io.data, user_id: str, game: game) + listener should have two parameters: + listener(data: socket.io.data, user_id: str, game: game) - listener should only be executed if the request comes from one of - the game participants (player_1_id | player_2_id) - ''' + listener should only be executed if the request comes from one of + the game participants (player_1_id | player_2_id) + ''' def wrapper(data, user_id): game_id = data["game_id"] if not game_id or \ - not game_id in games: + not game_id in games: return game = games[game_id] -- cgit v1.2.3