mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Validate CSVs fully
This commit extends the existing function to validate each row’s phone number to also validate that all the required data is present. It does this using the checking that the `Template` class can do when given a template and a `dict` of values.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from flask import url_for
|
||||
from app import notifications_api_client
|
||||
from app.main.utils import BrowsableItem
|
||||
from app.utils import BrowsableItem
|
||||
|
||||
|
||||
def insert_new_service(service_name, user_id):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from flask import url_for, abort
|
||||
from app import notifications_api_client
|
||||
from app.main.utils import BrowsableItem
|
||||
from app.utils import BrowsableItem
|
||||
|
||||
|
||||
def insert_service_template(name, type_, content, service_id):
|
||||
|
||||
Reference in New Issue
Block a user