nthumodifications / courseweb

🏫 National Tsing Hua University Course Selection for students by students
https://nthumods.com
GNU General Public License v3.0
47 stars 8 forks source link

update fallover_data periodically with github actions #334

Open ImJustChew opened 1 month ago

ImJustChew commented 1 month ago

Is your feature request related to a problem? Please describe. Unfortunately, we cannot guarantee NTHUSA-API's uptime and availability, thus, we have to design our own fallback to prevent downtime in our system.

Describe the solution you'd like Github Action should sync periodically, fetch data from API, and if successful, update the files.

Describe alternatives you've considered Maybe NTHUSA should also prioritize availability and caching of its data.

Additional context Quick Patch: https://github.com/nthumodifications/courseweb/commit/ec057ac31dcb036b5bc4d02b35f135342cbf378d Origin: https://github.com/NTHU-SA/NTHU-Data-API/issues/99

🫠 unfortunately no one will ever know the downtime of buses and the sacrifice of my sleep