From f9629c94137e3eaf4fd18447611d82a56757cc3a Mon Sep 17 00:00:00 2001 From: Alec Li Date: Sun, 18 Aug 2024 17:15:01 -0700 Subject: [PATCH] Set default description for matcher util --- csm_web/scheduler/utils/match_solver.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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")