Skip to content

Commit

Permalink
Merge branch 'bugfix/matcher_multiple_mentor' of https://github.com/c…
Browse files Browse the repository at this point in the history
…smberkeley/csm_web into bugfix/matcher_multiple_mentor
  • Loading branch information
ericyche committed Sep 7, 2023
2 parents 4077717 + c0f3bc2 commit 5db3944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csm_web/scheduler/views/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def mentors(request, pk=None):
skipped = []
# users already associated with the course as a mentor
users_with_course = User.objects.filter(mentor__course=course)
for email in request.data["mentors"]:
for email in set(request.data["mentors"]):
if not email or "@" not in email:
# invalid or blank email
skipped.append(email)
Expand Down

0 comments on commit 5db3944

Please sign in to comment.