Made enums.py for all the enums to avoid cyclic imports.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-10 12:32:25 -05:00
parent ac9591ec7c
commit 3982f061b6
31 changed files with 149 additions and 155 deletions

View File

@@ -2,7 +2,7 @@ from app import performance_platform_client
from app.dao.fact_notification_status_dao import (
get_total_sent_notifications_for_day_and_type,
)
from app.models import NotificationType
from app.enums import NotificationType
# TODO: is this obsolete? it doesn't seem to be used anywhere
@@ -20,7 +20,9 @@ def send_total_notifications_sent_for_day_stats(start_time, notification_type, c
# TODO: is this obsolete? it doesn't seem to be used anywhere
def get_total_sent_notifications_for_day(day):
email_count = get_total_sent_notifications_for_day_and_type(day, NotificationType.EMAIL)
email_count = get_total_sent_notifications_for_day_and_type(
day, NotificationType.EMAIL
)
sms_count = get_total_sent_notifications_for_day_and_type(day, NotificationType.SMS)
return {