This commit is contained in:
Ben Arc
2021-04-16 22:02:22 +01:00
parent 3acfaf6fbd
commit 88e11b4793
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -64,10 +64,8 @@ async def panel(copilot_id):
return await render_template("copilot/panel.html", copilot=copilot)
@copilot_ext.route("/api/v1/copilot/hook/", methods=["GET"])
async def api_copilot_hooker():
copilot_id = request.args.get("copilot")
amount = request.args.get("amount")
@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: