2 Commits

Author SHA1 Message Date
Lurkars 4ee1333166 update LICENSE 2021-09-07 14:33:13 +02:00
Lurkars b837319a5e server fixes 2019-08-07 21:03:10 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ Feel free to contribute enhancements via pull request or ideas via issues.
## Donations ## Donations
If you want to donate my work, feel free to do via [PayPal](https://www.paypal.me/Lurkars) or become a [Patreon](https://www.patreon.com/champonthis). If you want to donate my work, feel free to do via [PayPal](https://www.paypal.me/Lurkars) or become a [Patreon](https://www.patreon.com/champonthis).
## License ## License
Copyright (C) 2019 Lukas Haubaum Copyright (C) 2019 Lurkars
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by it under the terms of the GNU Affero General Public License as published by
+1 -1
View File
@@ -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=?",