Skip to content

Commit 4e25901

Browse files
authored
consume ned-nl history up to now
used to consume up to midnight today which pulled odd dummy values from source, changed to now.
1 parent 3007a71 commit 4e25901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solar_consumer/data/fetch_nl_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def fetch_nl_data(historic_or_forecast: str = "generation"):
6868

6969
# Define date range
7070
if historic_or_forecast == "generation":
71-
end_date = now.replace(hour=0) + timedelta(days=1) # to ~ midnight tonight
71+
end_date = now
7272
start_date = end_date - timedelta(days=2)
7373
else:
7474
# For forecast data, set start_date to 2 hours in the past from the current time

0 commit comments

Comments
 (0)