From 21980d2bdf756ed5df5e8b2935d1efd871c1b1db Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Thu, 27 Mar 2025 09:50:17 -0700 Subject: [PATCH] flake8 and isort --- app/main/views/jobs.py | 2 ++ app/notify_client/job_api_client.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index f255eb67f..d7f130eaf 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -108,6 +108,8 @@ def cancel_job(service_id, job_id): # //this is the resource that gets updated by being passed to ajax via updates_url to data-resource # and everything that is within get_job_partials is the html that gets updated + + @main.route("/services//jobs/.json") @user_has_permissions() def view_job_updates(service_id, job_id): diff --git a/app/notify_client/job_api_client.py b/app/notify_client/job_api_client.py index 130bf886a..640c5ec26 100644 --- a/app/notify_client/job_api_client.py +++ b/app/notify_client/job_api_client.py @@ -4,8 +4,10 @@ from zoneinfo import ZoneInfo from app.extensions import redis_client from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache from app.utils.csv import get_user_preferred_timezone + # from app.main.views.jobs import emit_job_update + class JobApiClient(NotifyAdminAPIClient): JOB_STATUSES = { "scheduled",