reformat up to latest version of black

This commit is contained in:
Kenneth Kehl
2024-04-01 15:12:33 -07:00
parent 87db56622e
commit ebdb78e52e
241 changed files with 334 additions and 92 deletions

View File

@@ -479,14 +479,16 @@ def get_all_notifications_for_service(service_id):
jsonify(
notifications=notifications,
page_size=page_size,
links=get_prev_next_pagination_links(
page,
len(next_page_of_pagination.items),
".get_all_notifications_for_service",
**kwargs,
)
if count_pages
else {},
links=(
get_prev_next_pagination_links(
page,
len(next_page_of_pagination.items),
".get_all_notifications_for_service",
**kwargs,
)
if count_pages
else {}
),
),
200,
)

View File

@@ -28,9 +28,11 @@ def send_notification_to_service_users(
notification = persist_notification(
template_id=template.id,
template_version=template.version,
recipient=user.email_address
if template.template_type == TemplateType.EMAIL
else user.mobile_number,
recipient=(
user.email_address
if template.template_type == TemplateType.EMAIL
else user.mobile_number
),
service=notify_service,
personalisation=personalisation,
notification_type=template.template_type,