Group search results by owner; auto-resume stuck pending documents
This commit is contained in:
+2
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user