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 --- nb2pgsql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nb2pgsql.py') diff --git a/nb2pgsql.py b/nb2pgsql.py index 6a6ffe3..3993c41 100755 --- a/nb2pgsql.py +++ b/nb2pgsql.py @@ -15,8 +15,8 @@ from tzlocal import get_localzone # I'm not sure I understand Norges Banks json-model. It seems a lot easier to just get the CSV, and convert it to JSON. apiUrl = "https://data.norges-bank.no/api/data/EXR/B.EUR.NOK.SP?format=csv&locale=en" -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 = "nbex" startTime = datetime.now(get_localzone()) - timedelta(days = 10) -- cgit v1.2.3