-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save e-learning venues as E-Learning in scraper #2823
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -111,7 +111,20 @@ export function transformModgrpToClassNo(modgrp: string, activity: string): stri | |||||
} | ||||||
|
||||||
export function mapTimetableLesson(lesson: TimetableLesson, logger: Logger): TempRawLesson { | ||||||
const { room, start_time, end_time, day, module, modgrp, activity, eventdate, csize } = lesson; | ||||||
const { | ||||||
room: providedRoom, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This avoids the
Suggested change
|
||||||
start_time, | ||||||
end_time, | ||||||
day, | ||||||
module, | ||||||
modgrp, | ||||||
activity, | ||||||
eventdate, | ||||||
csize, | ||||||
} = lesson; | ||||||
|
||||||
// Save E-Learn_* venues as E-Learning | ||||||
const room = providedRoom?.startsWith('E-Learn_') ? 'E-Learning' : providedRoom; | ||||||
|
||||||
if (has(unrecognizedLessonTypes, activity)) { | ||||||
logger.warn( | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "build", | ||
"target": "es2020", | ||
"target": "es2018", | ||
"lib": ["dom", "es2020"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ZhangYiJiang saw your comment about the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's probably not correct - this code will only be run in Node.js, and while |
||
"module": "commonjs", | ||
"baseUrl": "./src", | ||
"resolveJsonModule": true, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.