mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user