Skip to content
Snippets Groups Projects
Commit 88504eff authored by Stein Elgethun's avatar Stein Elgethun
Browse files

Fix formatting to comply with linting rules

Issue: GREG-42
parent 59d31e03
No related branches found
No related tags found
1 merge request!89Fix formatting to comply with linting rules
Pipeline #95880 passed
......@@ -7,16 +7,13 @@ def registration_template(institution, sponsor) -> str:
keywords = {
"institution": institution,
"sponsor": sponsor,
"registration_link": "www.google.com"
"registration_link": "www.google.com",
}
return render_to_string("guest_registration.txt", keywords)
def confirmation_template(guest) -> str:
keywords = {
"guest": guest,
"confirmation_link": "www.google.com"
}
keywords = {"guest": guest, "confirmation_link": "www.google.com"}
return render_to_string("sponsor_confirmation.txt", keywords)
......@@ -25,7 +22,7 @@ def send_registration_mail(mail_to, sponsor) -> int:
subject="Subject",
message=registration_template(settings.INSTANCE_NAME, sponsor),
from_email=None,
recipient_list=[mail_to]
recipient_list=[mail_to],
)
......@@ -34,5 +31,5 @@ def send_confirmation_mail(mail_to, guest) -> int:
subject="Subject",
message=confirmation_template(guest),
from_email=None,
recipient_list=[mail_to]
recipient_list=[mail_to],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment