From 3575d93dd0349b1b5d5025cd2531ae9e811f5b69 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 4 Oct 2022 08:24:52 +0200 Subject: adding prefix to environmental variables --- entsoe2pgsql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'entsoe2pgsql.py') diff --git a/entsoe2pgsql.py b/entsoe2pgsql.py index 8474184..12befd9 100755 --- a/entsoe2pgsql.py +++ b/entsoe2pgsql.py @@ -24,13 +24,13 @@ from dateutil import tz # > respond to your request. # 1: https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_authentication_and_authorisation # 2: https://transparency.entsoe.eu/content/static_content/download?path=/Static%20content/API-Token-Management.pdf -apiKey = os.environ['entsoe_token'] +apiKey = os.environ['el_entsoe_token'] # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html apiUrl = "https://transparency.entsoe.eu/api?securityToken=" + apiKey -pg_db = os.environ['pg_db'] -pg_host = os.environ['pg_host'] +pg_db = os.environ['el_pg_db'] +pg_host = os.environ['el_pg_host'] pg_table = "entsoe" startTime = datetime.now(get_localzone()) - timedelta(days = 7) -- cgit v1.2.3