forked from bton/matekasse
queue erro fixed i hope
This commit is contained in:
parent
e51ee801e7
commit
3c947da209
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue