Skip to content

Commit

Permalink
BuildingAndRoom -> Location 1 & 2, Using the same cf function but onl…
Browse files Browse the repository at this point in the history
…y creating meeting sections for 1
  • Loading branch information
SophiaSun18 committed Mar 11, 2024
1 parent 8272656 commit 7f51ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const startTimeCallback = (value: string, params: CaseCallbackParams) =>

export const locationCallback = (value: string, params: CaseCallbackParams) => {
assignWithMeetings(value, params, (location, i, meetings) => {
[meetings[i].location.building, meetings[i].location.roomNumber] = locationCase(location);
[meetings[i].location.building, meetings[i].location.roomNumber] = locationCase(location.split("-")[0]);
});
};

Expand Down
3 changes: 2 additions & 1 deletion client-course-schedulizer/src/utilities/helpers/readCSV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const pruimSpreadsheetFields: ValidFields = {
const registrarSpreadsheetFields: ValidFields = {
AcademicPeriod: cf.termCallback,
AcademicYear: cf.yearCallback,
BuildingAndRoom: cf.locationCallback,
Comments: cf.commentsCallback,
CourseNum: cf.numberCallback,
CourseSection: cf.courseSectionCallback,
Expand All @@ -60,6 +59,8 @@ const registrarSpreadsheetFields: ValidFields = {
InstructionalMethod: cf.instructionalMethodCallback,
Instructors: cf.instructorCallback,
LastEditTimestamp: cf.timestampCallback,
Location1: cf.locationCallback,
Location2: cf.locationCallback,
// LocalMax: cf.localMaxCallback,
MeetingDays: cf.daysCallback,
MeetingDurationMinutes: cf.durationCallback,
Expand Down

0 comments on commit 7f51ba2

Please sign in to comment.