feat: add all-time history option and increase limit to 10k
This commit is contained in:
+1
-1
@@ -444,7 +444,7 @@ async def get_thaiwater_sensors():
|
||||
@app.get("/measurements/history/{station_code}")
|
||||
async def get_postgres_history(
|
||||
station_code: str,
|
||||
hours: int = Query(168, ge=1, le=24 * 365),
|
||||
hours: int = Query(168, ge=1),
|
||||
limit: int = Query(2000, ge=1, le=5000),
|
||||
):
|
||||
"""Get historical measurements for a station from PostgreSQL."""
|
||||
|
||||
Reference in New Issue
Block a user