fix: bump history limits to 100k so all-time shows full dataset

This commit is contained in:
2026-08-09 17:41:14 +07:00
parent bbbf548d66
commit 9f26b32c86
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -452,7 +452,7 @@ async def get_thaiwater_sensors():
async def get_postgres_history(
station_code: str,
hours: int = Query(168, ge=1),
limit: int = Query(2000, ge=1, le=10000),
limit: int = Query(50000, ge=1, le=100000),
):
"""Get historical measurements for a station from PostgreSQL."""
cache_key = f"{station_code}:{hours}:{limit}"