mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
reformat up to latest version of black
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user