# Environment

* refactors settings into env usage
* adds proxy usage for schneider parcel fetching (using public web address instead of internal ip address)
This commit is contained in:
2024-04-03 13:45:08 +02:00
parent 04dc7fcd30
commit 1a80912960
14 changed files with 88 additions and 55 deletions

View File

@@ -11,6 +11,7 @@ from json import JSONDecodeError
import requests
from konova.sub_settings import schneider_settings
from konova.sub_settings.proxy_settings import PROXIES
class ParcelFetcher:
@@ -43,6 +44,7 @@ class ParcelFetcher:
response = requests.post(
url=post_url,
proxies=PROXIES,
data=self.geojson,
headers={
self.auth_header: self.auth_header_token