aboutsummaryrefslogtreecommitdiff
path: root/api/game/new.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-20 13:03:04 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-20 13:03:04 +0100
commite1978a9b80f3f7f5a36ca4af5f6df62f494a0d6d (patch)
tree27b2a142ad1c267f002e7c7e09ea337e4da688ac /api/game/new.py
parent16044fbf61b06f4d53e2ffcab67569721b3792e2 (diff)
/game/random endpoint
Diffstat (limited to 'api/game/new.py')
-rw-r--r--api/game/new.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/game/new.py b/api/game/new.py
index fd65019..1b63110 100644
--- a/api/game/new.py
+++ b/api/game/new.py
@@ -19,7 +19,7 @@ def index():
game_id = new_uuid("games")
timestamp = int( time.time() * 1000 )
- cursor.execute("insert into games values (?, NULL, NULL, ?, NULL, NULL, ?, NULL, NULL, NULL, \"wait_for_opponent\", ?) ", (game_id, user_id, timestamp, json.dumps(game_settings)))
+ cursor.execute("insert into games values (?, NULL, NULL, ?, NULL, NULL, ?, NULL, NULL, NULL, \"wait_for_opponent\", ?, TRUE) ", (game_id, user_id, timestamp, json.dumps(game_settings)))
connection.commit()
return { "id": game_id }, 200