black
This commit is contained in:
parent
b500a02f02
commit
5dad118991
1 changed files with 9 additions and 6 deletions
|
|
@ -76,18 +76,21 @@ async def api_copilot_hooker(copilot_id, amount):
|
||||||
jsonify({"message": "Copilot link link does not exist."}),
|
jsonify({"message": "Copilot link link does not exist."}),
|
||||||
HTTPStatus.NOT_FOUND,
|
HTTPStatus.NOT_FOUND,
|
||||||
)
|
)
|
||||||
|
print("got here")
|
||||||
if copilot.animation1threshold and int(amount) > copilot.animation1threshold:
|
if int(copilot.animation1threshold) and int(amount) > copilot.animation1threshold:
|
||||||
|
print("one")
|
||||||
data = copilot.animation1
|
data = copilot.animation1
|
||||||
if copilot.animation2threshold and int(amount) > copilot.animation2threshold:
|
if int(copilot.animation2threshold) and int(amount) > copilot.animation2threshold:
|
||||||
|
print("two")
|
||||||
data = copilot.animation2
|
data = copilot.animation2
|
||||||
if (
|
if (
|
||||||
copilot.animation3threshold
|
int(copilot.animation3threshold)
|
||||||
and int(amount) > copilot.animation3threshold
|
and int(amount) > copilot.animation3threshold
|
||||||
):
|
):
|
||||||
|
print("three")
|
||||||
data = copilot.animation3
|
data = copilot.animation3
|
||||||
global connected_websockets
|
global connected_websockets
|
||||||
print(connected_websockets)
|
|
||||||
connected_websockets[copilot.id] = shortuuid.uuid() + "-" + data
|
|
||||||
|
|
||||||
|
connected_websockets[copilot_id] = shortuuid.uuid() + "-" + data
|
||||||
|
print(connected_websockets)
|
||||||
return "", HTTPStatus.OK
|
return "", HTTPStatus.OK
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue