fix(site-finder): smart_suggestions filter parcels above documented score threshold (#1503) #1692

Merged
lekss361 merged 1 commit from fix/smart-suggestions-threshold-1503 into main 2026-06-17 18:05:25 +00:00

1 commit

Author SHA1 Message Date
de8bfdf884 fix(site-finder): smart_suggestions filter parcels above documented score threshold (#1503)
All checks were successful
CI / changes (push) Successful in 7s
CI / changes (pull_request) Successful in 7s
CI / backend-tests (push) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / openapi-codegen-check (push) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
Add SCORE_THRESHOLDS constant (mirror of backend/app/api/v1/parcels.py) to server.py
and filter out weighted scores below SCORE_THRESHOLDS["хорошо"] (25.0) before appending
to the suggestions list, honouring the contract stated in the endpoint docstring.
2026-06-17 20:50:31 +03:00