aboutsummaryrefslogtreecommitdiffstats
path: root/elvia2pgsql.py
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2022-09-13 06:48:33 +0200
committerDennis Eriksen <d@ennis.no>2022-09-13 06:48:33 +0200
commit2113230cc8a5303c85e6370573d41981b2eba970 (patch)
tree7df52aed6253634ef213c8aed532abe80d954d91 /elvia2pgsql.py
parentinitial commit (diff)
downloadenergyscripts-2113230cc8a5303c85e6370573d41981b2eba970.tar.gz
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.
Diffstat (limited to 'elvia2pgsql.py')
-rwxr-xr-xelvia2pgsql.py2
1 files changed, 1 insertions, 1 deletions
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')