mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
flake8
This commit is contained in:
@@ -530,8 +530,6 @@ def is_delivery_slow_for_providers(
|
||||
ProviderDetails.identifier,
|
||||
"slow"
|
||||
)
|
||||
print(slow_notification_counts)
|
||||
print([x for x in slow_notification_counts])
|
||||
|
||||
slow_providers = {}
|
||||
for provider, rows in groupby(slow_notification_counts, key=attrgetter('identifier')):
|
||||
|
||||
@@ -4,11 +4,6 @@ from notifications_utils.timezones import convert_utc_to_bst
|
||||
from sqlalchemy import asc, desc, func
|
||||
|
||||
from app.dao.dao_utils import transactional
|
||||
from app.provider_details.switch_providers import (
|
||||
provider_is_inactive,
|
||||
provider_is_primary,
|
||||
switch_providers
|
||||
)
|
||||
from app.models import FactBilling, ProviderDetails, ProviderDetailsHistory, SMS_TYPE, User
|
||||
from app import db
|
||||
|
||||
@@ -52,6 +47,7 @@ def dao_reduce_sms_provider_priority(identifier):
|
||||
providers[identifier].priority = max(0, providers[identifier].priority - 10)
|
||||
providers[other].priority = min(100, providers[other].priority + 10)
|
||||
|
||||
|
||||
def get_provider_details_by_notification_type(notification_type, supports_international=False):
|
||||
|
||||
filters = [ProviderDetails.notification_type == notification_type]
|
||||
|
||||
Reference in New Issue
Block a user