diff --git a/quartz_solar_forecast/weather/open_meteo.py b/quartz_solar_forecast/weather/open_meteo.py index e5c6c6ff..f2f869c6 100644 --- a/quartz_solar_forecast/weather/open_meteo.py +++ b/quartz_solar_forecast/weather/open_meteo.py @@ -99,7 +99,7 @@ def _validate_date_format(self, start_date: str, end_date: str) -> None: raise ValueError( f"Invalid date format. Please use YYYY-MM-DD format. Error: {str(e)}" ) from e - + if not (end_datetime > start_datetime): raise ValueError( f"Invalid date range. End date ({end_date}) must be greater than "