aboutsummaryrefslogtreecommitdiff
path: root/api/game/new.py
diff options
context:
space:
mode:
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