araeyn commited on
Commit
3ac3831
·
verified ·
1 Parent(s): 9c33b9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,8 +15,9 @@ async def echo(websocket):
15
  timout = 2500
16
  async for message in websocket:
17
  if message == "data":
18
- await websocket.send(str(vars()))
19
- return
 
20
  try:
21
  p = json.load(open("p.json"))
22
  b = json.load(open("b.json"))
 
15
  timout = 2500
16
  async for message in websocket:
17
  if message == "data":
18
+ p = json.load(open("p.json"))
19
+ b = json.load(open("b.json"))
20
+ await websocket.send(str(b))
21
  try:
22
  p = json.load(open("p.json"))
23
  b = json.load(open("b.json"))