aboutsummaryrefslogtreecommitdiffstats
path: root/entsoe2pgsql.py
diff options
context:
space:
mode:
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"},