mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
flake8 and isort
This commit is contained in:
@@ -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
|
# //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
|
# and everything that is within get_job_partials is the html that gets updated
|
||||||
|
|
||||||
|
|
||||||
@main.route("/services/<uuid:service_id>/jobs/<uuid:job_id>.json")
|
@main.route("/services/<uuid:service_id>/jobs/<uuid:job_id>.json")
|
||||||
@user_has_permissions()
|
@user_has_permissions()
|
||||||
def view_job_updates(service_id, job_id):
|
def view_job_updates(service_id, job_id):
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ from zoneinfo import ZoneInfo
|
|||||||
from app.extensions import redis_client
|
from app.extensions import redis_client
|
||||||
from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
|
from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
|
||||||
from app.utils.csv import get_user_preferred_timezone
|
from app.utils.csv import get_user_preferred_timezone
|
||||||
|
|
||||||
# from app.main.views.jobs import emit_job_update
|
# from app.main.views.jobs import emit_job_update
|
||||||
|
|
||||||
|
|
||||||
class JobApiClient(NotifyAdminAPIClient):
|
class JobApiClient(NotifyAdminAPIClient):
|
||||||
JOB_STATUSES = {
|
JOB_STATUSES = {
|
||||||
"scheduled",
|
"scheduled",
|
||||||
|
|||||||
Reference in New Issue
Block a user