From f620f0b9aaa745315203b9be0965ec767ef2cd3c Mon Sep 17 00:00:00 2001 From: robcxyz Date: Tue, 3 Sep 2024 23:01:41 +0800 Subject: [PATCH] fix: apy_time endpoint - limit to 100 due to timeout --- icon_governance/api/v1/endpoints/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icon_governance/api/v1/endpoints/stats.py b/icon_governance/api/v1/endpoints/stats.py index c4196c2..4b19da6 100644 --- a/icon_governance/api/v1/endpoints/stats.py +++ b/icon_governance/api/v1/endpoints/stats.py @@ -20,7 +20,7 @@ async def get_apy_over_time( start_timestamp: int = None, end_timestamp: int = None, skip: int = Query(0), - limit: int = Query(1000, gt=0, lt=1001), + limit: int = Query(100, gt=0, lt=101), session: AsyncSession = Depends(get_session), ) -> List[ApyTime]: """