Open ramanxg opened 2 years ago
Ten year plan for UCI: https://www.reg.uci.edu/calendars/academic/tenyr-19-29.html Maybe we can use this for caching instead.
This is how Peterportal client cached the data, although to MongoDB, might be helpful. https://github.com/icssc/peterportal-client/blob/master/api/src/helpers/week.ts
TODO:
week.helper
, use the json to reference the dates, instead of the scraped data. We shouldn't ever need to scrape.
From PR #191
Add a JSON cache for the current week helpers. The helpers can use the JSON for data instead of making requests to uci, (especially old dates). We can run a script to update the cache every year, and keep the script in
/utils
.