Group search results by owner; auto-resume stuck pending documents

This commit is contained in:
Krikorios
2026-05-07 21:59:29 +03:00
parent 631a4c3e3d
commit 60eb58cc9f
6 changed files with 80 additions and 13 deletions
+2 -5
View File
@@ -31,12 +31,9 @@ async def search(
if property_number or district or block:
properties = search_properties(property_number, district, block)
# If exactly one person found, preload their full details
# If exactly one person found, preload their full details (across all scopes)
if len(persons) == 1 and not properties:
selected_person = get_person_with_properties(
persons[0]["id"],
persons[0].get("search_scope"),
)
selected_person = get_person_with_properties(persons[0]["id"], None)
return render_template(
templates,