Work to dynamically merge all timeslots in every Preferences.preferredTimes field for each Professor.
professors.csv data is updated to unmerged preferred times for each Preferences object. Models did not need to change we simply hold a longer list of distinct time ranges in the existing table column.
get_professor_dict() is updated to dynamically merge all time ranges, if they border
(Unrelated) a minor cleanup of comments in the initialization.py script
Example unmerged preferredTimes field for a Preferences record (i.e. what we receive from Frontend & store in the DB):
Documenting the change here: DBInit script was updated to assure that Preferences.courseDaySpreads are empty lists. Was a minor edge case in the script that is fixed now
Work to dynamically merge all timeslots in every Preferences.preferredTimes field for each Professor.
get_professor_dict()
is updated to dynamically merge all time ranges, if they borderinitialization.py
scriptExample unmerged preferredTimes field for a Preferences record (i.e. what we receive from Frontend & store in the DB):
Example merged preferredTimes field for a Preferences record (i.e. what we send to the Algorithms teams within the Professors[] objects list):