From 3a39b8542407190b40db22a707816ba9a657f3b3 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 7 Oct 2022 08:27:58 +0200 Subject: Get for tomorrow as well --- entsoe2pgsql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'entsoe2pgsql.py') 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"}, -- cgit v1.2.3