mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] force int request attribute
This commit is contained in:
parent
7265efacb7
commit
9f47f34657
1 changed files with 1 additions and 1 deletions
2
run.py
2
run.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue