diff options
author | Dennis Eriksen <d@ennis.no> | 2022-12-12 13:37:59 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-12-12 13:37:59 +0100 |
commit | 6626d7810961c6f657e95647377a541a69b42dfa (patch) | |
tree | d821967e48f4e6650d4937e1b8ebcc7db6951b57 | |
parent | Get for tomorrow as well (diff) | |
download | energyscripts-6626d7810961c6f657e95647377a541a69b42dfa.tar.gz |
expand to two days, else we do not get all of tomorrow
-rwxr-xr-x | elvia_gridtariff2pgsql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elvia_gridtariff2pgsql.py b/elvia_gridtariff2pgsql.py index 7b97aee..b6b423b 100755 --- a/elvia_gridtariff2pgsql.py +++ b/elvia_gridtariff2pgsql.py @@ -24,7 +24,7 @@ pg_table = "elvia_gridtariff" startTime = datetime.now(get_localzone()) - timedelta(days = 2) startTime = startTime.strftime('%Y-%m-%d') -endTime = datetime.now(get_localzone()) + timedelta(days = 1) +endTime = datetime.now(get_localzone()) + timedelta(days = 2) endTime = endTime.strftime('%Y-%m-%d') |