[mod] force int request attribute

This commit is contained in:
Laurent Peuch 2018-09-03 06:37:29 +02:00
parent 7265efacb7
commit 9f47f34657

2
run.py
View file

@ -432,7 +432,7 @@ async def api_delete_job(request, job_id):
return response.text("ok")
@app.route("/api/job/<job_id>/stop", methods=['POST'])
@app.route("/api/job/<job_id:int>/stop", methods=['POST'])
async def api_stop_job(request, job_id):
# TODO auth or some kind