diff --git a/csm_web/scheduler/utils/match_solver.py b/csm_web/scheduler/utils/match_solver.py index 07fed39d..b0e9e1b7 100644 --- a/csm_web/scheduler/utils/match_solver.py +++ b/csm_web/scheduler/utils/match_solver.py @@ -10,7 +10,12 @@ MENTOR_NODE_PREFIX = "mentor" MentorTuple = namedtuple("MentorTuple", "id") -SlotTuple = namedtuple("SlotTuple", "id min_mentors max_mentors description") +SlotTuple = namedtuple( + "SlotTuple", + ["id", "min_mentors", "max_mentors", "description"], + # default description to empty string + defaults=[""], +) PreferenceTuple = namedtuple("PreferenceTuple", "mentor_id slot_id preference_value")