Skip to content

Commit

Permalink
Fix some coordinates. Export all merged extra info in organisations.j…
Browse files Browse the repository at this point in the history
…son. Duplicate tallinn, since ICPC is not consistent with this one.
  • Loading branch information
verwoerd committed Nov 3, 2024
1 parent 24ddf66 commit 4837946
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
2 changes: 1 addition & 1 deletion export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ if [ "$_arg_others" = on ]; then
organizations_paths+=( "$OTHERS_PATH/organizations.json" )
fi

jq -s "[.[][] | {\"id\": .id, \"name\": .name, \"formal_name\": .formal_name, \"country\": (.country? + \"\")}]" "${organizations_paths[@]}" > "$_arg_output_directory/organizations.json"
jq -s "[.[][] | {\"id\": .id, \"icpc_id\": (.icpc_id? + \"\"), \"name\": .name, \"formal_name\": .formal_name, \"country\": (.country? + \"\"), \"url\": (.url? + \"\") , \"twitter_hashtag\": (.twitter_hashtag? + \"\"), \"twitter_account\": (.twitter_account? + \"\"), \"location\": (.location? + {})}]" "${organizations_paths[@]}" > "$_arg_output_directory/organizations.json"

# Export the svgs
if [ "$_arg_universities" = on ]; then
Expand Down
19 changes: 19 additions & 0 deletions universities/logos/11048.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 18 additions & 6 deletions universities/organizations.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"country": "DNK",
"url": "http://www.au.dk",
"location": {
"longitude": 56.1667,
"latitude": 10.2000
"longitude": 10.2000,
"latitude": 56.1667
}
},
{
Expand Down Expand Up @@ -282,8 +282,8 @@
"country": "IRL",
"url": "http://www.ucc.ie/",
"location": {
"longitude": 51.89797,
"latitude": -8.47061
"longitude": -8.47061,
"latitude": 51.89797
}
},
{
Expand Down Expand Up @@ -615,8 +615,8 @@
"country": "GBR",
"url": "https://www.southampton.ac.uk/",
"location": {
"longitude": 50.9346,
"latitude": -1.3960
"longitude": -1.3960,
"latitude": 50.9346
}
},
{
Expand Down Expand Up @@ -843,6 +843,18 @@
"latitude": 50.8417
}
},
{
"id": "11048",
"icpc_id": "11048",
"name": "TalTech",
"formal_name": "Tallinn University of Technology",
"country": "EST",
"url": "https://taltech.ee/",
"location": {
"longitude": 24.75353,
"latitude": 59.43696
}
},
{
"id": "10500",
"icpc_id": "10500",
Expand Down

0 comments on commit 4837946

Please sign in to comment.