We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c9c657 + 5b2fd3f commit 724b9e4Copy full SHA for 724b9e4
solar_consumer/data/fetch_nl_data.py
@@ -176,7 +176,7 @@ def fetch_nl_data(historic_or_forecast: str = "generation"):
176
# remove any future data
177
if historic_or_forecast == "generation":
178
# we pull a bit of future data, so update to only return historic values
179
- end_date = now
+ end_date = now - timedelta(minutes=15)
180
181
all_data = all_data[all_data["target_datetime_utc"] <= end_date]
182
all_data = all_data[all_data["target_datetime_utc"] >= start_date]
0 commit comments