diff --git a/.github/actions/waffles/requirements.txt b/.github/actions/waffles/requirements.txt index d958d266..c969b5ea 100644 --- a/.github/actions/waffles/requirements.txt +++ b/.github/actions/waffles/requirements.txt @@ -1,4 +1,4 @@ docopt==0.6.2 Flask==2.3.3 markupsafe==2.1.3 -git+https://github.com/cds-snc/notifier-utils.git@52.0.10#egg=notifications-utils +git+https://github.com/cds-snc/notifier-utils.git@52.0.11#egg=notifications-utils diff --git a/notifications_utils/columns.py b/notifications_utils/columns.py index c438e4ff..5f42dd35 100644 --- a/notifications_utils/columns.py +++ b/notifications_utils/columns.py @@ -49,9 +49,14 @@ def __init__( self.index = index self.recipient_column_headers = recipient_column_headers self.placeholders = placeholders - self.template_type = template_type + if template_type: + self.template_type = template_type + else: + self.template_type = template.template_type if template else None self.recipient_column_hearders_lang_check = ( - ["email address", "adresse courriel"] if self.template_type == "email" else ["phone number", "numéro de téléphone"] + ["email address", "adresse courriel", "to"] + if self.template_type == "email" + else ["phone number", "numéro de téléphone", "to"] ) if template: diff --git a/pyproject.toml b/pyproject.toml index 90b8f771..aa5dad59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ include = '(notifications_utils|tests)/.*\.pyi?$' [tool.poetry] name = "notifications-utils" -version = "52.0.10" +version = "52.0.11" description = "Shared python code for Notification - Provides logging utils etc." authors = ["Canadian Digital Service"] license = "MIT license"