Skip to content

Commit

Permalink
feat: update env var UNDERPASS_API_URL --> RAW_DATA_API_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 20, 2024
1 parent 1763131 commit 83763d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osm_rawdata/pgasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion osm_rawdata/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}")
Expand Down

0 comments on commit 83763d0

Please sign in to comment.