diff --git a/.github/workflows/import.yml b/.github/workflows/import.yml index 8df246f..edaedc2 100644 --- a/.github/workflows/import.yml +++ b/.github/workflows/import.yml @@ -55,6 +55,8 @@ jobs: repo: Unofficial-Codelists - importer: humanitarian_plan repo: Unofficial-Codelists + - importer: sector_humanitarian_cluster + repo: Unofficial-Codelists name: "Run importer: ${{ matrix.importer }}" runs-on: ubuntu-latest steps: diff --git a/importers/sector_humanitarian_cluster.py b/importers/sector_humanitarian_cluster.py new file mode 100644 index 0000000..87fe533 --- /dev/null +++ b/importers/sector_humanitarian_cluster.py @@ -0,0 +1,19 @@ +import csv + +from .helpers import Importer, fetch + + +def run(): + url = 'https://gist.githubusercontent.com/markbrough/57106a152dbb26a6f4544a77c6768a64/raw/dac5-clusters-mapping.csv' + lookup = [ + ('code', 'code'), + ('name', 'name'), + ('category', 'cluster_code'), + ('codeforiati:cluster', 'cluster_name'), + ] + + Importer('SectorCategoryHumanitarianGlobalCluster', url, lookup) + + +if __name__ == '__main__': + run() diff --git a/templates/SectorCategoryHumanitarianGlobalCluster.xml b/templates/SectorCategoryHumanitarianGlobalCluster.xml new file mode 100644 index 0000000..6304419 --- /dev/null +++ b/templates/SectorCategoryHumanitarianGlobalCluster.xml @@ -0,0 +1,14 @@ + + + + DAC Sector Category and Humanitarian Cluster Mappings + + + Mapping between DAC Sector Categories and Humanitarian Clusters. Improvements to this codelist are welcome! + + + Maintained + + + +