diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-16 17:07:05 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-16 17:07:05 +0200 |
commit | c603cb79e7ba7fdbb101a506e36f6d8d70b3a8f4 (patch) | |
tree | 1845ef1c57eafcde9e46df1e62b776a63782ad1d /api/game | |
parent | 2e58a8597aa14b43835dcc162fc661e21c5c8fe2 (diff) |
converted all tabs to spaces in python
Diffstat (limited to 'api/game')
-rw-r--r-- | api/game/socket.py | 12 |
1 files changed, 6 insertions, 6 deletions
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] |