1
0
Fork 0
forked from bton/matekasse

queue erro fixed i hope

This commit is contained in:
2000-Trek 2023-06-07 20:30:31 +02:00
parent e51ee801e7
commit 3c947da209

View file

@ -96,6 +96,7 @@ def request_addtag(data):
global finished global finished
if len(users.queue) > 0: if len(users.queue) > 0:
user = users.queue[len(users.queue) - 1] user = users.queue[len(users.queue) - 1]
print(user)
if user == data["data"]: if user == data["data"]:
socketio.emit("wait", "wait") socketio.emit("wait", "wait")
i = 0 i = 0
@ -104,7 +105,6 @@ def request_addtag(data):
i += 1 i += 1
if i > 20: if i > 20:
socketio.emit("error", "timeout") socketio.emit("error", "timeout")
nothing = users.get()
break break
else: else:
finished = None finished = None