Spaces:
Sleeping
Sleeping
Commit
·
b3ff6bb
1
Parent(s):
83dd7b0
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def create_room():
|
|
22 |
if room == roomId:
|
23 |
success = False
|
24 |
if success:
|
25 |
-
rooms.update
|
26 |
-
return flask.jsonify({
|
27 |
else:
|
28 |
return flask.jsonify({"success": False})
|
29 |
|
|
|
22 |
if room == roomId:
|
23 |
success = False
|
24 |
if success:
|
25 |
+
rooms.update({roomId: {}}) # Create an empty room with an empty message list
|
26 |
+
return flask.jsonify({"success": True})
|
27 |
else:
|
28 |
return flask.jsonify({"success": False})
|
29 |
|