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
6
run.py
6
run.py
|
@ -454,7 +454,7 @@ async def run_job(worker, job):
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
job.log += "Uhoh ?! UnicodeDecodeError in yunorunner !?"
|
job.log += "Uhoh ?! UnicodeDecodeError in yunorunner !?"
|
||||||
job.log += str(e)
|
job.log += str(e)
|
||||||
|
|
||||||
# XXX seems to be okay performance wise but that's probably going to be
|
# XXX seems to be okay performance wise but that's probably going to be
|
||||||
# a bottleneck at some point :/
|
# a bottleneck at some point :/
|
||||||
# theoritically jobs are going to have slow output
|
# theoritically jobs are going to have slow output
|
||||||
|
@ -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