server fixes
This commit is contained in:
parent
b928e67fb1
commit
b837319a5e
@ -86,7 +86,7 @@ def create_game():
|
|||||||
remote_addr = request.headers.getlist(
|
remote_addr = request.headers.getlist(
|
||||||
"X-Forwarded-For")[0].rpartition(' ')[-1]
|
"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))
|
(name, secret, remote_addr, port, bots, bot_difficulty))
|
||||||
con.commit()
|
con.commit()
|
||||||
cur.execute("SELECT id FROM games WHERE secret=?",
|
cur.execute("SELECT id FROM games WHERE secret=?",
|
||||||
|
Reference in New Issue
Block a user