Skip to content

Commit

Permalink
enhance(regions): use new etl external step
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed May 6, 2024
1 parent 8c70211 commit 728bac6
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 204 deletions.
10 changes: 5 additions & 5 deletions devTools/regionsUpdater/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import _ from "lodash"

const ETL_REGIONS_URL =
process.env.ETL_REGIONS_URL ||
"https://catalog.ourworldindata.org/grapher/regions/latest/regions/regions.csv",
"https://catalog.ourworldindata.org/external/owid_grapher/latest/regions/regions.csv",
GEO_JSON_URL =
"https://raw.githubusercontent.com/alexabruck/worldmap-sensitive/master/dist/world.geo.json",
GRAPHER_ROOT = __dirname.replace(/\/(itsJustJavascript\/)?devTools.*/, ""),
Expand All @@ -31,10 +31,10 @@ const ETL_REGIONS_URL =
MKD: ["Macedonia"],
SWZ: ["Swaziland"],
USA: ["US", "USA"],
OWID_WB_LIC: ["Low-income"],
OWID_WB_LMC: ["Lower-middle income"],
OWID_WB_UMC: ["Upper-middle income"],
OWID_WB_HIC: ["High-income"],
OWID_LIC: ["Low-income"],
OWID_LMC: ["Lower-middle income"],
OWID_UMC: ["Upper-middle income"],
OWID_HIC: ["High-income"],
}

interface Entity {
Expand Down

0 comments on commit 728bac6

Please sign in to comment.