From 719cb13c08f4513f9d967aeba05b32a80063de5b Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 5 Nov 2018 01:59:00 +0100 Subject: [PATCH] [mod] rename function for better readability --- run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.py b/run.py index 941d493..4ac0553 100644 --- a/run.py +++ b/run.py @@ -688,14 +688,14 @@ async def api_restart_job(request, job_id): await broadcast({ "action": "update_job", "data": model_to_dict(job), - }, ["jobs", f"job-{job_id}"]) + }, ["jobs", f"job-{job_id}", f"app-jobs-{job.url_or_path}"]) return response.text("ok") @app.route('/job/') @jinja.template('job.html') -async def job(request, job_id): +async def html_job(request, job_id): job = Job.select().where(Job.id == job_id) if job.count == 0: @@ -706,13 +706,13 @@ async def job(request, job_id): @app.route('/apps/') @jinja.template('apps.html') -async def apps(request): +async def html_apps(request): return {'relative_path_to_root': '../', 'path': request.path} @app.route('/') @jinja.template('index.html') -async def index(request): +async def html_index(request): return {'relative_path_to_root': '', 'path': request.path}