Skip to content

Commit

Permalink
Undoes changes made by typos pre-commit hook (#5279)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilanova authored Oct 1, 2024
1 parent a69fe02 commit 2b52e50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
16 changes: 6 additions & 10 deletions src/dispatch/incident/metrics.py
Original file line number Diff line number Diff line change
@@ -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__)


Expand Down
8 changes: 4 additions & 4 deletions src/dispatch/static/dispatch/src/auth/pkceAuthProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 2b52e50

Please sign in to comment.