calvh / mlh-final-project

MIT License
0 stars 2 forks source link

Implement cancel queue feature #156

Open calvh opened 3 years ago

calvh commented 3 years ago

Frontend needs work, backend function needs review

Backend function (deleted)

````
@socketio.on("cancel queue")
def handle_cancel_queue(data):

    sid = request.sid

    try:
        queue.remove(sid)
        emit("cancel queue")
    except ValueError:
        emit("user notification", "Not in queue")
````