mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 15:22:24 -05:00
All string "constants" in app.models converted to app.enums.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -78,13 +78,12 @@ def get_month_from_utc_column(column):
|
||||
|
||||
|
||||
def get_public_notify_type_text(notify_type, plural=False):
|
||||
from app.enums import NotificationType
|
||||
from app.models import UPLOAD_DOCUMENT
|
||||
from app.enums import NotificationType, ServicePermissionType
|
||||
|
||||
notify_type_text = notify_type
|
||||
if notify_type == NotificationType.SMS:
|
||||
notify_type_text = "text message"
|
||||
elif notify_type == UPLOAD_DOCUMENT:
|
||||
elif notify_type == ServicePermissionType.UPLOAD_DOCUMENT:
|
||||
notify_type_text = "document"
|
||||
|
||||
return "{}{}".format(notify_type_text, "s" if plural else "")
|
||||
|
||||
Reference in New Issue
Block a user