print test

This commit is contained in:
Ben Arc 2021-04-16 20:55:47 +01:00
parent 37c9b9e825
commit 1d27f88b96

View file

@ -67,12 +67,13 @@ async def panel(copilot_id):
@copilot_ext.route("/api/v1/copilot/hook/<copilot_id>/<amount>", methods=["GET"])
async def api_copilot_hooker(copilot_id, amount):
copilot = await get_copilot(copilot_id)
print(amount)
if not copilot:
return (
jsonify({"message": "Copilot link link does not exist."}),
HTTPStatus.NOT_FOUND,
)
print(amount)
if (
copilot.animation1threshold
and int(amount) > copilot.animation1threshold