mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-11 09:27:56 -04:00
Getting imports right to use app.enums
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -633,7 +633,7 @@ def get_detailed_services(
|
||||
|
||||
@service_blueprint.route("/<uuid:service_id>/guest-list", methods=["GET"])
|
||||
def get_guest_list(service_id):
|
||||
from app.models import GuestListRecipientType
|
||||
from app.enums import GuestListRecipientType
|
||||
|
||||
service = dao_fetch_service_by_id(service_id)
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ from app.dao.services_dao import (
|
||||
dao_fetch_service_by_id,
|
||||
)
|
||||
from app.dao.templates_dao import dao_get_template_by_id
|
||||
from app.models import KEY_TYPE_NORMAL, TemplateType
|
||||
from app.enums import TemplateType
|
||||
from app.models import KEY_TYPE_NORMAL
|
||||
from app.notifications.process_notifications import (
|
||||
persist_notification,
|
||||
send_notification_to_queue,
|
||||
|
||||
@@ -2,7 +2,8 @@ from collections import defaultdict
|
||||
from datetime import datetime
|
||||
|
||||
from app.dao.date_util import get_months_for_financial_year
|
||||
from app.models import NOTIFICATION_STATUS_TYPES, TemplateType
|
||||
from app.enums import TemplateType
|
||||
from app.models import NOTIFICATION_STATUS_TYPES
|
||||
|
||||
|
||||
def format_statistics(statistics):
|
||||
|
||||
@@ -3,13 +3,8 @@ import itertools
|
||||
from notifications_utils.recipients import allowed_to_send_to
|
||||
|
||||
from app.dao.services_dao import dao_fetch_service_by_id
|
||||
from app.models import (
|
||||
KEY_TYPE_NORMAL,
|
||||
KEY_TYPE_TEAM,
|
||||
KEY_TYPE_TEST,
|
||||
GuestListRecipientType,
|
||||
ServiceGuestList,
|
||||
)
|
||||
from app.enums import GuestListRecipientType
|
||||
from app.models import KEY_TYPE_NORMAL, KEY_TYPE_TEAM, KEY_TYPE_TEST, ServiceGuestList
|
||||
|
||||
|
||||
def get_recipients_from_request(request_json, key, type):
|
||||
|
||||
Reference in New Issue
Block a user