From 7ba616e0957a90b9e98160f98d6a85476115915a Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 11 Apr 2020 15:43:59 +0200 Subject: [PATCH] Added remove from queue button --- server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.py b/server.py index 369baa4..ececd0f 100644 --- a/server.py +++ b/server.py @@ -54,6 +54,10 @@ def search(data): def addToQueue(data): app.addToQueue_link(data['url'], socket=socketio) +@socketio.on('removeFromQueue') +def removeFromQueue(uuid): + app.removeFromQueue_link(uuid, socket=socketio) + # Example code leftover, could be usefull later on @server.route('/choose/path', methods=['POST']) def choose_path():