bjornregnell / kapten-alloc-web

Find your slot in space and time.
https://cs.lth.se/pgk/kaptenalloc
39 stars 4 forks source link

Add lecture rows in schedule #1

Open bjornregnell opened 3 years ago

bjornregnell commented 3 years ago

This means downloading csv from TimeEdit and extracting relevant rows to inject in data. https://cs.lth.se/pgk/schema/timeedit/

bjornregnell commented 1 year ago

With

curl https://cs.lth.se/pgk/schema/timeedit/ -s -L -I -o /dev/null -w '%{url_effective}'

You get the url to timeedit ending with .html and replace the ending with .csv and you get the csv data. This can be done with a simple bashscript to update and save it as timeedit.csv using curl and writing a scala program that merges this into the GENERATED code. This could use the Scala Process api to call curl and update data GENERATED before building the webbapp.

bjornregnell commented 3 months ago

I'm not sure this is worth it, as it will clutter the list with many more rows. What do others think?