From 52702416ddd04f7c82403506e45c48ce89ba0a41 Mon Sep 17 00:00:00 2001 From: kasperiio Date: Mon, 11 Nov 2024 12:29:09 +0200 Subject: [PATCH] fix: remove date range limiter --- app/routers/electricity.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/routers/electricity.py b/app/routers/electricity.py index 3aa1312..e7ca4c2 100644 --- a/app/routers/electricity.py +++ b/app/routers/electricity.py @@ -43,12 +43,6 @@ def get_electricity_price( if start_date_dt == end_date_dt: end_date_dt = end_date_dt.replace(hour=23) - if (end_date_dt - start_date_dt).days > 7: - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail="Date range cannot exceed 7 days" - ) - # Query the database for prices prices = crud.get_electricity_prices(db, start_date_dt, end_date_dt)