Skip to content

Commit

Permalink
fix: remove date range limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperiio committed Nov 11, 2024
1 parent 96d6edd commit 5270241
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/routers/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5270241

Please sign in to comment.