Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|