Skip to content

Commit

Permalink
Merge branch 'live' into merge-codeforiati-and-publishingstats
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Jul 25, 2024
2 parents a3eefd5 + df9d783 commit 0b2ae67
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions helpers/get_codelist_mapping.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

wget https://raw.github.com/codeforIATI/IATI-Codelists/version-1.05/mapping.xml -O mapping-1.xml
wget --tries=20 --waitretry=10 --retry-connrefused https://raw.github.com/codeforIATI/IATI-Codelists/version-1.05/mapping.xml -O mapping-1.xml
python mappings_to_json.py mapping-1.xml > mapping-1.json

wget https://raw.github.com/codeforIATI/IATI-Codelists/version-2.03/mapping.xml -O mapping-2.xml
wget https://raw.github.com/codeforIATI/Unofficial-Codelists/master/mapping.xml -O mapping-unofficial.xml
wget --tries=20 --waitretry=10 --retry-connrefused https://raw.github.com/codeforIATI/IATI-Codelists/version-2.03/mapping.xml -O mapping-2.xml
wget --tries=20 --waitretry=10 --retry-connrefused https://raw.github.com/codeforIATI/Unofficial-Codelists/master/mapping.xml -O mapping-unofficial.xml
python mappings_to_json.py mapping-2.xml mapping-unofficial.xml > mapping-2.json
40 changes: 20 additions & 20 deletions helpers/get_codelists.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
#!/usr/bin/env bash

mkdir -p codelists/1
wget "https://codelists.codeforiati.org/api/1/json/en/Version.json" -O codelists/1/Version.json
wget "https://codelists.codeforiati.org/api/1/json/en/ActivityStatus.json" -O codelists/1/ActivityStatus.json
wget "https://codelists.codeforiati.org/api/1/json/en/Currency.json" -O codelists/1/Currency.json
wget "https://codelists.codeforiati.org/api/1/json/en/Sector.json" -O codelists/1/Sector.json
wget "https://codelists.codeforiati.org/api/1/json/en/SectorCategory.json" -O codelists/1/SectorCategory.json
wget "https://codelists.codeforiati.org/api/1/json/en/DocumentCategory.json" -O codelists/1/DocumentCategory.json
wget "https://codelists.codeforiati.org/api/1/json/en/AidType.json" -O codelists/1/AidType.json
wget "https://codelists.codeforiati.org/api/1/json/en/BudgetNotProvided.json" -O codelists/1/BudgetNotProvided.json
wget "https://codelists.codeforiati.org/api/1/json/en/OrganisationRegistrationAgency.json" -O codelists/1/OrganisationRegistrationAgency.json
wget "https://codelists.codeforiati.org/api/1/json/en/CRSChannelCode.json" -O codelists/1/CRSChannelCode.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/Version.json" -O codelists/1/Version.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/ActivityStatus.json" -O codelists/1/ActivityStatus.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/Currency.json" -O codelists/1/Currency.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/Sector.json" -O codelists/1/Sector.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/SectorCategory.json" -O codelists/1/SectorCategory.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/DocumentCategory.json" -O codelists/1/DocumentCategory.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/AidType.json" -O codelists/1/AidType.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/BudgetNotProvided.json" -O codelists/1/BudgetNotProvided.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/OrganisationRegistrationAgency.json" -O codelists/1/OrganisationRegistrationAgency.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/1/json/en/CRSChannelCode.json" -O codelists/1/CRSChannelCode.json

mkdir -p codelists/2
wget "https://codelists.codeforiati.org/api/json/en/Version.json" -O codelists/2/Version.json
wget "https://codelists.codeforiati.org/api/json/en/ActivityStatus.json" -O codelists/2/ActivityStatus.json
wget "https://codelists.codeforiati.org/api/json/en/Currency.json" -O codelists/2/Currency.json
wget "https://codelists.codeforiati.org/api/json/en/Sector.json" -O codelists/2/Sector.json
wget "https://codelists.codeforiati.org/api/json/en/SectorCategory.json" -O codelists/2/SectorCategory.json
wget "https://codelists.codeforiati.org/api/json/en/DocumentCategory.json" -O codelists/2/DocumentCategory.json
wget "https://codelists.codeforiati.org/api/json/en/AidType.json" -O codelists/2/AidType.json
wget "https://codelists.codeforiati.org/api/json/en/BudgetNotProvided.json" -O codelists/2/BudgetNotProvided.json
wget "https://codelists.codeforiati.org/api/json/en/OrganisationRegistrationAgency.json" -O codelists/2/OrganisationRegistrationAgency.json
wget "https://codelists.codeforiati.org/api/json/en/CRSChannelCode.json" -O codelists/2/CRSChannelCode.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/Version.json" -O codelists/2/Version.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/ActivityStatus.json" -O codelists/2/ActivityStatus.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/Currency.json" -O codelists/2/Currency.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/Sector.json" -O codelists/2/Sector.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/SectorCategory.json" -O codelists/2/SectorCategory.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/DocumentCategory.json" -O codelists/2/DocumentCategory.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/AidType.json" -O codelists/2/AidType.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/BudgetNotProvided.json" -O codelists/2/BudgetNotProvided.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/OrganisationRegistrationAgency.json" -O codelists/2/OrganisationRegistrationAgency.json
wget --tries=20 --waitretry=10 --retry-connrefused "https://codelists.codeforiati.org/api/json/en/CRSChannelCode.json" -O codelists/2/CRSChannelCode.json

0 comments on commit 0b2ae67

Please sign in to comment.