From 83763d0eb7f7725ef9759765f6b1944ac8196a6a Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 20 May 2024 15:33:42 +0100 Subject: [PATCH] feat: update env var UNDERPASS_API_URL --> RAW_DATA_API_URL --- osm_rawdata/pgasync.py | 2 +- osm_rawdata/postgres.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_rawdata/pgasync.py b/osm_rawdata/pgasync.py index 6f2c5a6..eaf2f75 100755 --- a/osm_rawdata/pgasync.py +++ b/osm_rawdata/pgasync.py @@ -88,7 +88,7 @@ async def connect( # Use a persistant connect, better for multiple requests self.session = requests.Session() - self.url = os.getenv("UNDERPASS_API_URL", "https://raw-data-api0.hotosm.org/v1") + self.url = os.getenv("RAW_DATA_API_URL", "https://raw-data-api0.hotosm.org/v1") self.headers = {"accept": "application/json", "Content-Type": "application/json"} else: # log.debug(f"Connecting with: {connect}") diff --git a/osm_rawdata/postgres.py b/osm_rawdata/postgres.py index cdc68f1..f0ef1c5 100755 --- a/osm_rawdata/postgres.py +++ b/osm_rawdata/postgres.py @@ -132,7 +132,7 @@ def __init__( if self.uri["dbname"] == "underpass": # Use a persistant connect, better for multiple requests self.session = requests.Session() - self.url = os.getenv("UNDERPASS_API_URL", "https://api-prod.raw-data.hotosm.org/v1") + self.url = os.getenv("RAW_DATA_API_URL", "https://api-prod.raw-data.hotosm.org/v1") self.headers = {"accept": "application/json", "Content-Type": "application/json"} else: log.info(f"Opening database connection to: {self.uri['dbname']}")