More forgotten brackets

This commit is contained in:
Alexandre Aubin 2023-01-09 14:19:00 +01:00
parent 5357376afe
commit f8f5a1c1fe

4
run.py
View file

@ -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}