don't even try heavily penalized searches

This commit is contained in:
Sarah Hoffmann 2024-03-26 22:00:25 +01:00
parent a96b6a1289
commit c39fc5d180

View File

@ -95,7 +95,7 @@ class ForwardGeocoder:
prevresult.accuracy = min(prevresult.accuracy, result.accuracy)
else:
results[rhash] = result
min_ranking = min(min_ranking, result.accuracy * 1.2)
min_ranking = min(min_ranking, result.accuracy * 1.2, 2.0)
log().result_dump('Results', ((r.accuracy, r) for r in lookup_results))
prev_penalty = search.penalty
if dt.datetime.now() >= end_time: