Skip to content

Commit

Permalink
fix: Fix typo, args.uri, not args.url (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Savoye <[email protected]>
  • Loading branch information
robsavoye and rsavoye authored Jun 25, 2024
1 parent b358100 commit ba7d4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osm_rawdata/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(
if self.uri["dbname"] == "underpass":
# Use a persistant connect, better for multiple requests
self.session = requests.Session()
self.url = os.getenv(
self.uri = os.getenv(
"RAW_DATA_API_URL", "https://api-prod.raw-data.hotosm.org/v1"
)
self.headers = {
Expand Down Expand Up @@ -537,7 +537,7 @@ def queryRemote(
# Send the request to raw data api
result = None

url = f"{self.url}/snapshot/"
url = f"{self.uri}/snapshot/"
try:
log.debug(f"Raw Data API snapshot JSON config: {query}")
result = self.session.post(url, data=query, headers=self.headers)
Expand Down

0 comments on commit ba7d4ff

Please sign in to comment.