Ramesh-vani commited on
Commit
a428b58
·
verified ·
1 Parent(s): 06a76c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -656,7 +656,7 @@ async def start(websocket,events):
656
  connected = {websocket}
657
 
658
  join_key = secrets.token_urlsafe(12)
659
- JOIN[join_key] = game, connected
660
 
661
 
662
  try:
@@ -668,14 +668,7 @@ async def start(websocket,events):
668
  "watch": watch_key,
669
  }
670
  await websocket.send(json.dumps(event))
671
-
672
- # js = json.loads(events)
673
- # assert js["type"] == "init"
674
- # base_path = os.path.join(os.getcwd(), 'projects',join_key, js["project_name"])
675
- # data=json.loads(js["file_structure"])
676
- # # Receive and process moves from the first player.
677
- # # await play(websocket, game, PLAYER1, connected)
678
- # await create_file_structure(websocket,data, base_path=base_path)
679
  await exe(websocket,connected,join_key)
680
  finally:
681
  del JOIN[join_key]
 
656
  connected = {websocket}
657
 
658
  join_key = secrets.token_urlsafe(12)
659
+ JOIN[join_key] = user, connected
660
 
661
 
662
  try:
 
668
  "watch": watch_key,
669
  }
670
  await websocket.send(json.dumps(event))
671
+
 
 
 
 
 
 
 
672
  await exe(websocket,connected,join_key)
673
  finally:
674
  del JOIN[join_key]