|
|
@ -56,12 +56,12 @@ def create_game(): |
|
|
|
rows = cur.fetchall() |
|
|
|
while rows: |
|
|
|
port += 1 |
|
|
|
game_count += 1 |
|
|
|
game_count += 1 |
|
|
|
cur.execute("SELECT * FROM games WHERE port=?", (port,)) |
|
|
|
rows = cur.fetchall() |
|
|
|
|
|
|
|
if game_count == MAX_GAMES: |
|
|
|
abort(401) |
|
|
|
|
|
|
|
if game_count == MAX_GAMES: |
|
|
|
abort(401) |
|
|
|
|
|
|
|
# check duplicate name |
|
|
|
base_name = name |
|
|
|