aboutsummaryrefslogtreecommitdiff
path: root/api/game/random.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-11 18:03:11 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-11 18:03:11 +0200
commitdeb09e5c749e3353c927d7fe94bbd35f25ff85ee (patch)
tree702ba982530aa98a96ddece365a32be842dae3c2 /api/game/random.py
parent28f104de9ae9abe4b42abafbf3865ede5687996c (diff)
dprint yapf continuation align style edit
Diffstat (limited to 'api/game/random.py')
-rw-r--r--api/game/random.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/game/random.py b/api/game/random.py
index 2dfbe0b..559c9e5 100644
--- a/api/game/random.py
+++ b/api/game/random.py
@@ -17,7 +17,7 @@ random_game = Blueprint('random', __name__)
def index(user_id):
# get public_games (random opponent queue)
public_games = cursor.execute(
- "select game_id from games where private = FALSE and status = \"wait_for_opponent\""
+ "select game_id from games where private = FALSE and status = \"wait_for_opponent\""
).fetchall()
game_started = False
@@ -36,9 +36,9 @@ def index(user_id):
game_started = True
return {
- "id": game_id,
- "player_1": player_1,
- "game_started": game_started
+ "id": game_id,
+ "player_1": player_1,
+ "game_started": game_started
}, 200