Skip to content

Commit

Permalink
Update utils (#250)
Browse files Browse the repository at this point in the history
* fix

* Update utils

* fix formatting

* Fix type
  • Loading branch information
jzbahrai authored Oct 3, 2023
1 parent f0e5461 commit 08ba551
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/waffles/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docopt==0.6.2
Flask==2.3.3
markupsafe==2.1.3
git+https://github.com/cds-snc/[email protected].10#egg=notifications-utils
git+https://github.com/cds-snc/[email protected].11#egg=notifications-utils
9 changes: 7 additions & 2 deletions notifications_utils/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 08ba551

Please sign in to comment.