From b837319a5e537477dd6e96d06ce3c0c613686d97 Mon Sep 17 00:00:00 2001 From: Lurkars Date: Wed, 7 Aug 2019 21:03:10 +0200 Subject: [PATCH] server fixes --- ext/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/server.py b/ext/server.py index e0f686e..b379edd 100755 --- a/ext/server.py +++ b/ext/server.py @@ -86,7 +86,7 @@ def create_game(): remote_addr = request.headers.getlist( "X-Forwarded-For")[0].rpartition(' ')[-1] - cur.execute("INSERT INTO games (name,secret,ip,port,bots,bot-difficulty,player_count,running) VALUES (?,?,?,?,?,0,0)", + cur.execute("INSERT INTO games (name,secret,ip,port,bots,bot_difficulty,player_count,running) VALUES (?,?,?,?,?,?,0,0)", (name, secret, remote_addr, port, bots, bot_difficulty)) con.commit() cur.execute("SELECT id FROM games WHERE secret=?",