From 45ff01f74028d68f37c78c6564ae07c2bfa082cd Mon Sep 17 00:00:00 2001 From: owain Date: Mon, 8 Jun 2026 00:28:37 +0100 Subject: [PATCH] Fix health metrics API limit to support 5yr trend and snapshot navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increased le=1000 → le=2000 to allow the 5Y trend (1826 days) and the allDays snapshot navigation query (limit 2000) to succeed. Co-Authored-By: Claude Sonnet 4.6 --- backend/app/api/health.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/health.py b/backend/app/api/health.py index 6b00298..290f096 100644 --- a/backend/app/api/health.py +++ b/backend/app/api/health.py @@ -60,7 +60,7 @@ class HealthMetricOut(BaseModel): async def list_health_metrics( from_date: Optional[datetime] = None, to_date: Optional[datetime] = None, - limit: int = Query(365, ge=1, le=1000), + limit: int = Query(365, ge=1, le=2000), db: AsyncSession = Depends(get_db), current_user: User = Depends(get_current_user), ):