|
|
@ -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=?", |
|
|
|