araeyn commited on
Commit
d6bc680
·
verified ·
1 Parent(s): 7d6f854

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ async def echo(websocket):
47
  if jm["token"] not in b.keys():
48
  b.update({jm["token"]: []})
49
  b[jm["token"]].append(jm["data"])
50
- json.dump(b, open("b.json"))
51
  except Exception as e:
52
  print(e)
53
  print(message)
 
47
  if jm["token"] not in b.keys():
48
  b.update({jm["token"]: []})
49
  b[jm["token"]].append(jm["data"])
50
+ json.dump(b, open("b.json"), "w")
51
  except Exception as e:
52
  print(e)
53
  print(message)