mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Cleaning up with black, isort, flake8.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -6,7 +6,7 @@ from app.dao.service_sms_sender_dao import dao_get_service_sms_senders_by_id
|
||||
from app.dao.services_dao import dao_fetch_service_by_id
|
||||
from app.dao.templates_dao import dao_get_template_by_id_and_service_id
|
||||
from app.dao.users_dao import get_user_by_id
|
||||
from app.enums import NotificationType, KeyType, TemplateProcessType
|
||||
from app.enums import KeyType, NotificationType, TemplateProcessType
|
||||
from app.notifications.process_notifications import (
|
||||
persist_notification,
|
||||
send_notification_to_queue,
|
||||
@@ -80,7 +80,11 @@ def send_one_off_notification(service_id, post_data):
|
||||
client_reference=client_reference,
|
||||
)
|
||||
|
||||
queue_name = QueueNames.PRIORITY if template.process_type == TemplateProcessType.PRIORITY else None
|
||||
queue_name = (
|
||||
QueueNames.PRIORITY
|
||||
if template.process_type == TemplateProcessType.PRIORITY
|
||||
else None
|
||||
)
|
||||
|
||||
send_notification_to_queue(
|
||||
notification=notification,
|
||||
|
||||
@@ -6,7 +6,7 @@ from app.dao.services_dao import (
|
||||
dao_fetch_service_by_id,
|
||||
)
|
||||
from app.dao.templates_dao import dao_get_template_by_id
|
||||
from app.enums import TemplateType, KeyType
|
||||
from app.enums import KeyType, TemplateType
|
||||
from app.notifications.process_notifications import (
|
||||
persist_notification,
|
||||
send_notification_to_queue,
|
||||
|
||||
@@ -2,7 +2,7 @@ from collections import defaultdict
|
||||
from datetime import datetime
|
||||
|
||||
from app.dao.date_util import get_months_for_financial_year
|
||||
from app.enums import TemplateType, NotificationStatus
|
||||
from app.enums import NotificationStatus, TemplateType
|
||||
|
||||
|
||||
def format_statistics(statistics):
|
||||
|
||||
@@ -3,7 +3,7 @@ import itertools
|
||||
from notifications_utils.recipients import allowed_to_send_to
|
||||
|
||||
from app.dao.services_dao import dao_fetch_service_by_id
|
||||
from app.enums import RecipientType, KeyType
|
||||
from app.enums import KeyType, RecipientType
|
||||
from app.models import ServiceGuestList
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user