Skip to content

Commit ace8bd3

Browse files
committed
Fix for radius validation
1 parent 6ef6bb4 commit ace8bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/common_query_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
# https://facts.usps.com/42000-zip-codes/. Starting zip code is 00501
4747
zip: int = Query(ge=501, le=99950),
4848
year: int = Query(ge=2022, le=2026),
49-
radius: int = Query(gt=0, lt=500),
49+
radius: int = Query(gt=0, le=500),
5050
model: str = Query(pattern="|".join(valid_models)),
5151
):
5252
# Zip is passed in as a query parameter string. When casting to an int, the

0 commit comments

Comments
 (0)