stumash / CoursePlanner

http://conucourseplanner.online
MIT License
5 stars 3 forks source link

Add course correction map #114

Closed Davidster closed 6 years ago

Davidster commented 6 years ago

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 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
Davidster commented 6 years ago

I have no idea why my first commit 6d6f8ba failed the travis build. Very confused 💩