Compare commits
2 Commits
pre_alpha_3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ee1333166 | |||
| b837319a5e |
@@ -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
@@ -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