mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
More forgotten brackets
This commit is contained in:
parent
5357376afe
commit
f8f5a1c1fe
1 changed files with 3 additions and 3 deletions
4
run.py
4
run.py
|
@ -973,7 +973,7 @@ async def api_badge_job(request, job_id):
|
||||||
async def html_job(request, job_id):
|
async def html_job(request, job_id):
|
||||||
job = Job.select().where(Job.id == job_id)
|
job = Job.select().where(Job.id == job_id)
|
||||||
|
|
||||||
if job.count == 0:
|
if job.count() == 0:
|
||||||
raise NotFound()
|
raise NotFound()
|
||||||
|
|
||||||
job = job[0]
|
job = job[0]
|
||||||
|
@ -1009,7 +1009,7 @@ async def html_apps(request):
|
||||||
async def html_app(request, app_name):
|
async def html_app(request, app_name):
|
||||||
app = Repo.select().where(Repo.name == app_name)
|
app = Repo.select().where(Repo.name == app_name)
|
||||||
|
|
||||||
if app.count == 0:
|
if app.count() == 0:
|
||||||
raise NotFound()
|
raise NotFound()
|
||||||
|
|
||||||
return {"app": app[0], 'relative_path_to_root': '../../', 'path': request.path}
|
return {"app": app[0], 'relative_path_to_root': '../../', 'path': request.path}
|
||||||
|
|
Loading…
Add table
Reference in a new issue