diff options
author | Dennis Eriksen <d@ennis.no> | 2022-10-07 08:27:58 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-10-07 08:27:58 +0200 |
commit | 3a39b8542407190b40db22a707816ba9a657f3b3 (patch) | |
tree | d999144476d555835cb5b7724a4a2aeac7e7694e /entsoe2pgsql.py | |
parent | adding prefix to environmental variables (diff) | |
download | energyscripts-3a39b8542407190b40db22a707816ba9a657f3b3.tar.gz |
Get for tomorrow as well
Diffstat (limited to 'entsoe2pgsql.py')
-rwxr-xr-x | entsoe2pgsql.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/entsoe2pgsql.py b/entsoe2pgsql.py index 12befd9..3fdb6b6 100755 --- a/entsoe2pgsql.py +++ b/entsoe2pgsql.py @@ -36,7 +36,8 @@ pg_table = "entsoe" startTime = datetime.now(get_localzone()) - timedelta(days = 7) startTime = startTime.strftime('%Y%m%d') -endTime = datetime.now(get_localzone()).strftime('%Y%m%d') +endTime = datetime.now(get_localzone()) + timedelta(days = 1) +endTime = endTime.strftime('%Y%m%d') # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areas areas = [ {"name": "NO-0", "code": "10YNO-0--------C"}, |