Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed May 2, 2024
1 parent d767de1 commit f4840fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion portal/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def process_independent_student_signup_form(request, data):
email = data["email"]

if email and User.objects.filter(email=email).exists():
email_message = email_messages.userAlreadyRegisteredEmail(request, email, is_independent_student=True)
is_email_ratelimited = is_ratelimited(
request=request,
group=RATELIMIT_USER_ALREADY_REGISTERED_EMAIL_GROUP,
Expand Down
10 changes: 5 additions & 5 deletions portal/views/teacher/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ def dashboard_teacher_view(request, is_admin):
if account_exists:
send_dotdigital_email(
campaign_ids["invite_teacher_with_account"],
invited_teacher_email,
[invited_teacher_email],
personalization_values={"SCHOOL_NAME": school.name, "REGISTRATION_LINK": registration_link},
)
else:
send_dotdigital_email(
campaign_ids["invite_teacher_without_account"],
invited_teacher_email,
[invited_teacher_email],
personalization_values={"SCHOOL_NAME": school.name, "REGISTRATION_LINK": registration_link},
)

Expand Down Expand Up @@ -390,7 +390,7 @@ def organisation_kick(request, pk):

send_dotdigital_email(
campaign_ids["teacher_released"],
teacher.new_user.email,
[teacher.new_user.email],
personalization_values={"SCHOOL_CLUB_NAME": user.school.name},
)

Expand Down Expand Up @@ -604,13 +604,13 @@ def resend_invite_teacher(request, token):
if invite.is_expired:
send_dotdigital_email(
campaign_ids["invite_teacher_without_account"],
invite.invited_teacher_email,
[invite.invited_teacher_email],
personalization_values={"SCHOOL_NAME": invite.school, "REGISTRATION_LINK": registration_link},
)
else:
send_dotdigital_email(
campaign_ids["invite_teacher_with_account"],
invite.invited_teacher_email,
[invite.invited_teacher_email],
personalization_values={"SCHOOL_NAME": invite.school, "REGISTRATION_LINK": registration_link},
)

Expand Down

0 comments on commit f4840fc

Please sign in to comment.