aboutsummaryrefslogtreecommitdiffstats
path: root/entsoe2pgsql.py
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2022-10-07 08:27:58 +0200
committerDennis Eriksen <d@ennis.no>2022-10-07 08:27:58 +0200
commit3a39b8542407190b40db22a707816ba9a657f3b3 (patch)
treed999144476d555835cb5b7724a4a2aeac7e7694e /entsoe2pgsql.py
parentadding prefix to environmental variables (diff)
downloadenergyscripts-3a39b8542407190b40db22a707816ba9a657f3b3.tar.gz
Get for tomorrow as well
Diffstat (limited to 'entsoe2pgsql.py')
-rwxr-xr-xentsoe2pgsql.py3
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"},