From ae1eaa3c26e628ea95f1eefdbe835b335ae2fbff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Proch=C3=A1zka?= Date: Tue, 7 Oct 2025 11:04:41 +0200 Subject: [PATCH] STAG is a bit busted --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b001f00..989ac00 100755 --- a/build.sh +++ b/build.sh @@ -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,