As discussed in PR #111, I have added a new file courseCorrectionMap.json which gets used by the sequence scraper to fix the fact that we didn't have the courseInfo for some courses contained in our scraped sequences.
For each course code key in the map, the scraper swaps all occurrences of that code in each sequence with the key's value. If the key's value is an empty string, it removes the course altogether.
Test
Run scrapeTheWeb.sh then run missingCourses.js and it should output:
There are no courses that are listed in at least one recommended sequence but are not present in the course info DB
resolves #86
Summary
As discussed in PR #111, I have added a new file
courseCorrectionMap.json
which gets used by the sequence scraper to fix the fact that we didn't have the courseInfo for some courses contained in our scraped sequences.For each course code key in the map, the scraper swaps all occurrences of that code in each sequence with the key's value. If the key's value is an empty string, it removes the course altogether.
Test
Run
scrapeTheWeb.sh
then runmissingCourses.js
and it should output: