Skip to content

Commit

Permalink
WIP actions/sync_gws_mailing_lists.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrik committed May 21, 2024
1 parent a633f76 commit f4e2146
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions actions/sync_gws_mailing_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@
account without receiving duplicate emails."""

SUBSCRIPTION_MESSAGE = ("""You have been subscribed to {group_email} mailing
list as {email} with role {role} and delivery option {delivery} because you
are a member of group(s) {qualifying_groups}.{
PARA_SEP + none_explanation if none_explanation else ''}"""
list as {email} with role {role} and delivery mode {delivery} because you
are a member of group(s) {qualifying_groups}.{none_explanation}"""
+ PARA_SEP + MESSAGE_FOOTER)

ROLE_CHANGE_MESSAGE = ("""The role of {email} in {group_email} has changed from
Expand Down Expand Up @@ -258,7 +257,7 @@ async def sync_kc_group_to_gws(kc_group, group_email, keycloak_client, gws_membe
group_email=group_email, email=email, role=body['role'],
delivery=body['delivery_settings'],
qualifying_groups=', '.join(member_kc_groups[email]),
none_explanation=(NONE_EXPLANATION
none_explanation=(PARA_SEP + NONE_EXPLANATION
if body['delivery_settings'] == 'NONE'
else '')),
para_sep=PARA_SEP),
Expand Down

0 comments on commit f4e2146

Please sign in to comment.