Fix data fetch 6

This commit is contained in:
Urtzi Alfaro
2025-07-27 21:44:18 +02:00
parent 938fd24e3a
commit 0201b428e5
4 changed files with 8 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ async def get_historical_traffic(
if request.end_date <= request.start_date:
raise HTTPException(status_code=400, detail="End date must be after start date")
if (request.end_date - request.start_date).days > 90:
if (request.end_date - request.start_date).days > 1000:
raise HTTPException(status_code=400, detail="Date range cannot exceed 90 days")
historical_data = await traffic_service.get_historical_traffic(