diff --git a/csm_web/scheduler/views/matcher.py b/csm_web/scheduler/views/matcher.py index b667a133..21d0b97b 100644 --- a/csm_web/scheduler/views/matcher.py +++ b/csm_web/scheduler/views/matcher.py @@ -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))), ) ) @@ -544,7 +544,7 @@ def run_matcher(course: Course): lambda preference: PreferenceTuple( preference.mentor.id, preference.slot.id, preference.preference ), - matcher_preference, + matcher_preferences, ) )