Raise stations limit cap 100->1000 so miles-radius fetches (limit=500) don't 422
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ def stations(
|
||||
lat: Optional[float] = Query(None, description="User latitude"),
|
||||
lng: Optional[float] = Query(None, description="User longitude"),
|
||||
radius: float = Query(20.0, description="Search radius in km"),
|
||||
limit: int = Query(10, ge=1, le=100),
|
||||
limit: int = Query(10, ge=1, le=1000),
|
||||
):
|
||||
if _state["stations"] is None:
|
||||
raise HTTPException(status_code=502, detail="No data cached yet and upstream fetch failed")
|
||||
|
||||
Reference in New Issue
Block a user