You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code for fetching descriptions and co-requisites looks quite similar: looping through subjects, then courses, fetching something, merging it with the courses, and saving it to the file.
Create a function that does the looping for us and only requires a definition of what should happen to each course.
For example (fetching descriptions):
augmentCourses({// subjects (optional): { code: "CS" }, use for debuggingname: "description"// for loggingaction: (subject,course,index)=>{const description =awaitfetchDescription(course.term,course.crn);},});
The name field is for logging ("1/151: 3/4 descriptions fetched")
The text was updated successfully, but these errors were encountered:
The code for fetching descriptions and co-requisites looks quite similar: looping through subjects, then courses, fetching something, merging it with the courses, and saving it to the file.
Create a function that does the looping for us and only requires a definition of what should happen to each course.
For example (fetching descriptions):
The
name
field is for logging ("1/151: 3/4 descriptions fetched"
)The text was updated successfully, but these errors were encountered: