Skip to content

Commit

Permalink
restructured socket response
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lby73 committed Jan 1, 2024
1 parent 996fa93 commit 5ea1b18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web-ui/webApp/apiRoute.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ def put(self):
args = self.parser.parse_args()
emergency = args["emergency"]

value = {"emergency":emergency}
socketio.emit("emergency", value)
socketio.emit("emergency", {"emergency":emergency})

return jsonify({"success":"broadcast successful"}), 200

Expand Down

0 comments on commit 5ea1b18

Please sign in to comment.