Localize notification_utils to the admin

This changeset pulls in all of the notification_utils code directly into the admin 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 admin.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-05-16 10:37:37 -04:00
parent 6bab682edd
commit 9a83ba7475
122 changed files with 49925 additions and 268 deletions

View File

@@ -3,11 +3,12 @@ from itertools import chain
from flask import abort, g, make_response, request
from flask_login import current_user
from notifications_utils.field import Field
from ordered_set import OrderedSet
from werkzeug.datastructures import MultiDict
from werkzeug.routing import RequestRedirect
from notifications_utils.field import Field
SENDING_STATUSES = ["created", "pending", "sending"]
DELIVERED_STATUSES = ["delivered", "sent"]
FAILURE_STATUSES = [

View File

@@ -2,10 +2,10 @@ import datetime
import pytz
from flask_login import current_user
from notifications_utils.recipients import RecipientCSV
from app.models.spreadsheet import Spreadsheet
from app.utils.templates import get_sample_template
from notifications_utils.recipients import RecipientCSV
def get_errors_for_csv(recipients, template_type):