From 4ed5a01e8c6c474268cd3f0b32b53dea1b9909d0 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 13 Jul 2018 22:10:27 +0200 Subject: [PATCH] [mod] refactor, rename boardcast to update_job --- run.py | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index bf2e31e..e03c3b6 100644 --- a/run.py +++ b/run.py @@ -144,7 +144,7 @@ async def run_job(worker, job): worker.save() await broadcast({ - "target": "job", + "target": "update_job", "id": job.id, "data": model_to_dict(job), }, "jobs") diff --git a/templates/index.html b/templates/index.html index f981faf..5198df9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -50,7 +50,7 @@ var data = message.data; var target = message.target; - if (target == "job") { + if (target == "update_job") { for (var i = 0; i < app.jobs.length; ++i) { if (app.jobs[i].id == data.id) { Vue.set(app.jobs, i, data);