Skip to content

Commit

Permalink
Rename var from matcher_preference to matcher_preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyche committed Sep 7, 2023
1 parent b006048 commit 4347c9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions csm_web/scheduler/views/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,13 @@ def run_matcher(course: Course):
# get slot information
matcher_slots = MatcherSlot.objects.filter(matcher=course.matcher)
# get preference information
matcher_preference = MatcherPreference.objects.filter(slot__matcher=course.matcher)
matcher_preferences = MatcherPreference.objects.filter(slot__matcher=course.matcher)

# list of all mentor ids
mentor_list = list(
map(
MentorTuple,
list(set(matcher_preference.values_list("mentor", flat=True))),
list(set(matcher_preferences.values_list("mentor", flat=True))),
)
)

Expand All @@ -544,7 +544,7 @@ def run_matcher(course: Course):
lambda preference: PreferenceTuple(
preference.mentor.id, preference.slot.id, preference.preference
),
matcher_preference,
matcher_preferences,
)
)

Expand Down

0 comments on commit 4347c9b

Please sign in to comment.