Skip to content

Commit 83763d0

Browse files
committed
feat: update env var UNDERPASS_API_URL --> RAW_DATA_API_URL
1 parent 1763131 commit 83763d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

osm_rawdata/pgasync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async def connect(
8888

8989
# Use a persistant connect, better for multiple requests
9090
self.session = requests.Session()
91-
self.url = os.getenv("UNDERPASS_API_URL", "https://raw-data-api0.hotosm.org/v1")
91+
self.url = os.getenv("RAW_DATA_API_URL", "https://raw-data-api0.hotosm.org/v1")
9292
self.headers = {"accept": "application/json", "Content-Type": "application/json"}
9393
else:
9494
# log.debug(f"Connecting with: {connect}")

osm_rawdata/postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(
132132
if self.uri["dbname"] == "underpass":
133133
# Use a persistant connect, better for multiple requests
134134
self.session = requests.Session()
135-
self.url = os.getenv("UNDERPASS_API_URL", "https://api-prod.raw-data.hotosm.org/v1")
135+
self.url = os.getenv("RAW_DATA_API_URL", "https://api-prod.raw-data.hotosm.org/v1")
136136
self.headers = {"accept": "application/json", "Content-Type": "application/json"}
137137
else:
138138
log.info(f"Opening database connection to: {self.uri['dbname']}")

0 commit comments

Comments
 (0)