diff --git a/osm_fieldwork/make_data_extract.py b/osm_fieldwork/make_data_extract.py index a1c5cac8..e8a7508b 100755 --- a/osm_fieldwork/make_data_extract.py +++ b/osm_fieldwork/make_data_extract.py @@ -153,7 +153,11 @@ def __init__(self, # Use a persistant connect, better for multiple requests self.session = requests.Session() - self.url = "https://raw-data-api0.hotosm.org/v1" + url = os.getenv('RAWDATA_API') + if not url: + self.url = "https://raw-data-api0.hotosm.org/v1" + else: + self.url = url self.headers = {"accept": "application/json", "Content-Type": "application/json"} else: log.info("Opening database connection to: %s" % dbhost)