diff options
-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"}, |