mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] count is method
This commit is contained in:
parent
abcc170e08
commit
04cb5f0ec1
1 changed files with 2 additions and 2 deletions
4
run.py
4
run.py
|
@ -416,8 +416,8 @@ async def api_stop_job(request, job_id):
|
|||
|
||||
job = Job.select().where(Job.id == job_id)
|
||||
|
||||
if job.count == 0:
|
||||
raise NotFound()
|
||||
if job.count() == 0:
|
||||
raise NotFound(f"Error: no job with the id '{job_id}'")
|
||||
|
||||
job = job[0]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue