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,