differentiate between place searches with and without address

This commit is contained in:
Sarah Hoffmann
2025-07-07 11:17:01 +02:00
parent 13eaea8aae
commit c634e9fc5f
6 changed files with 38 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ APIOPTIONS = ['search']
def run_search(apiobj, frontend, global_penalty, lookup, ranking, count=2,
hnrs=[], pcs=[], ccodes=[], quals=[],
hnrs=[], pcs=[], ccodes=[], quals=[], has_address=False,
details=SearchDetails()):
class MySearchData:
penalty = global_penalty
@@ -31,7 +31,7 @@ def run_search(apiobj, frontend, global_penalty, lookup, ranking, count=2,
lookups = lookup
rankings = ranking
search = AddressSearch(0.0, MySearchData(), count)
search = AddressSearch(0.0, MySearchData(), count, has_address)
if frontend is None:
api = apiobj