From 2113230cc8a5303c85e6370573d41981b2eba970 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 13 Sep 2022 06:48:33 +0200 Subject: Sometimes there's a delay before new data is available. Increase the period we're asking for, so we don't end up with gaps in case the delay is over 24h. --- elvia2pgsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elvia2pgsql.py') diff --git a/elvia2pgsql.py b/elvia2pgsql.py index 1b74f02..665826d 100755 --- a/elvia2pgsql.py +++ b/elvia2pgsql.py @@ -18,7 +18,7 @@ pg_db = os.environ['pg_db'] pg_host = os.environ['pg_host'] pg_table = "elvia" -startTime = datetime.now(get_localzone()) - timedelta(days = 1) +startTime = datetime.now(get_localzone()) - timedelta(days = 2) startTime = startTime.isoformat('T') endTime = datetime.now(get_localzone()).isoformat('T') -- cgit v1.2.3