Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undoes changes made by typos pre-commit hook #5279

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading