Browse Source

server fixes

master
Lurkars 5 years ago
parent
commit
b837319a5e
  1. 2
      ext/server.py

2
ext/server.py

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

Loading…
Cancel
Save