diff options
author | Dennis Eriksen <d@ennis.no> | 2022-09-13 06:48:33 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-09-13 06:48:33 +0200 |
commit | 2113230cc8a5303c85e6370573d41981b2eba970 (patch) | |
tree | 7df52aed6253634ef213c8aed532abe80d954d91 /elvia2pgsql.py | |
parent | initial commit (diff) | |
download | energyscripts-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-x | elvia2pgsql.py | 2 |
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') |