mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 22:39:43 -04:00
Localize notification_utils to the API
This changeset pulls in all of the notification_utils code directly into the API and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the API. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
from flask import Blueprint, jsonify, request
|
||||
from notifications_utils import SMS_CHAR_COUNT_LIMIT
|
||||
from notifications_utils.template import SMSMessageTemplate
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
|
||||
from app.dao.services_dao import dao_fetch_service_by_id
|
||||
@@ -28,6 +26,8 @@ from app.template.template_schemas import (
|
||||
post_update_template_schema,
|
||||
)
|
||||
from app.utils import get_public_notify_type_text
|
||||
from notifications_utils import SMS_CHAR_COUNT_LIMIT
|
||||
from notifications_utils.template import SMSMessageTemplate
|
||||
|
||||
template_blueprint = Blueprint(
|
||||
"template", __name__, url_prefix="/service/<uuid:service_id>/template"
|
||||
|
||||
Reference in New Issue
Block a user