STAG is a bit busted
This commit is contained in:
2
build.sh
2
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,
|
||||
|
Reference in New Issue
Block a user