aboutsummaryrefslogtreecommitdiff
path: root/api/game/random.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-22 10:50:57 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-22 10:50:57 +0100
commit4f5a1710891f2ac959d5f1a41de26a8854c9085f (patch)
tree871579001c28d52350a020907a8f4a7c2e6540e6 /api/game/random.py
parent69a9ecfe7a7f5de1c59a066a83dee22d0788e24a (diff)
link invites + game/random cleanup
Diffstat (limited to 'api/game/random.py')
-rw-r--r--api/game/random.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/api/game/random.py b/api/game/random.py
index ae7dc95..9c16627 100644
--- a/api/game/random.py
+++ b/api/game/random.py
@@ -25,8 +25,6 @@ def index():
public_games = cursor.execute("select game_id from games where private = FALSE and status = \"wait_for_opponent\"").fetchall()
- timestamp = int( time.time() * 1000 )
-
game_started = False
if len(public_games) == 0:
@@ -37,11 +35,6 @@ def index():
start_game(game_id, user_id)
- players = cursor.execute("select player_1_id, player_2_id from games where game_id = ?", [game_id]).fetchone()
- games[game_id] = game(game_id, io, players[0], players[1])
-
- io.emit("gameStart", room=games[game_id].room)
-
player_1 = False
game_started = True