Skip to content

Commit

Permalink
Set default description for matcher util
Browse files Browse the repository at this point in the history
  • Loading branch information
smartspot2 committed Sep 4, 2024
1 parent 4101e84 commit f9629c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion csm_web/scheduler/utils/match_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit f9629c9

Please sign in to comment.