From 2b52e50821ccc02ddbbce7bb9e34c100a57ad74b Mon Sep 17 00:00:00 2001 From: Marc Vilanova <39573146+mvilanova@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:36:02 -0700 Subject: [PATCH] Undoes changes made by typos pre-commit hook (#5279) --- src/dispatch/incident/metrics.py | 16 ++++++---------- .../static/dispatch/src/auth/pkceAuthProvider.js | 8 ++++---- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/dispatch/incident/metrics.py b/src/dispatch/incident/metrics.py index 48dde0a797c8..b5a44b7ae39d 100644 --- a/src/dispatch/incident/metrics.py +++ b/src/dispatch/incident/metrics.py @@ -1,23 +1,19 @@ -import math import logging -from typing import List -from itertools import groupby - -from datetime import date - +import math from calendar import monthrange +from datetime import date +from itertools import groupby +from typing import List import pandas as pd -from statsmodels.tsa.api import ExponentialSmoothing - from sqlalchemy import and_ +from statsmodels.tsa.api import ExponentialSmoothing -from dispatch.database.service import apply_filters, apply_filter_specific_joins +from dispatch.database.service import apply_filter_specific_joins, apply_filters from dispatch.incident.type.models import IncidentType from .models import Incident - log = logging.getLogger(__name__) diff --git a/src/dispatch/static/dispatch/src/auth/pkceAuthProvider.js b/src/dispatch/static/dispatch/src/auth/pkceAuthProvider.js index 3941dfb93dc6..92ad393abd1c 100644 --- a/src/dispatch/static/dispatch/src/auth/pkceAuthProvider.js +++ b/src/dispatch/static/dispatch/src/auth/pkceAuthProvider.js @@ -7,11 +7,11 @@ import { GRANT_TYPE_AUTHORIZATION_CODE, TokenRequest } from "@openid/appauth/bui import { LocalStorageBackend } from "@openid/appauth/built/storage" import { RedirectRequestHandler } from "@openid/appauth/built/redirect_based_handler" -import { FetchRequester } from "@openid/appauth/built/xhr" +import { FetchRequestor } from "@openid/appauth/built/xhr" import store from "@/store" -const requester = new FetchRequester() +const requestor = new FetchRequestor() function login(to, from, next) { const clientId = import.meta.env.VITE_DISPATCH_AUTHENTICATION_PROVIDER_PKCE_CLIENT_ID @@ -28,7 +28,7 @@ function login(to, from, next) { return qsUtils.parseQueryString(input.search) } - const tokenHandler = new BaseTokenRequestHandler(requester) + const tokenHandler = new BaseTokenRequestHandler(requestor) // Get a the openIdConnect configuration let cfg = null @@ -41,7 +41,7 @@ function login(to, from, next) { const p = new Promise(resolver) if (cfg === null) { - AuthorizationServiceConfiguration.fetchFromIssuer(openIdConnectUrl, requester) + AuthorizationServiceConfiguration.fetchFromIssuer(openIdConnectUrl, requestor) .then((response) => { cfg = response rslv(cfg)