STAG is a bit busted

This commit is contained in:
2025-10-07 11:04:41 +02:00
parent 49e5f8b9b7
commit ae1eaa3c26

View File

@@ -2,7 +2,7 @@ mkdir -p archive
echo -n "const programmes = " > programmes.js
curl "https://stag.tul.cz/StagPortletsJSR168/ProhlizeniPrint?stateClass=cz.zcu.stag.portlets168.prohlizeni.browser.BrowserFakultaSearchState&wservice=programy/getStudijniProgramy&outputFormat=CSV&pouzePlatne=true&lang=cs" | csvjson -e cp1250 | jq 'group_by(.fakulta | ascii_downcase) | [.[] | {
key: .[0].fakulta | ascii_downcase,
key: .[0].fakulta | ascii_downcase | if . == "fe" then "ef" else . end | if . == "fa" then "fua" else . end,
value: [.[] | {
code: .kod | ascii_upcase,
type: .typ | ascii_downcase // .titulZkr // .titul,