mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
add support for external sanitizer modules
This commit is contained in:
@@ -25,7 +25,7 @@ def sanitize(def_config, request):
|
||||
if country is not None:
|
||||
pi['country_code'] = country
|
||||
|
||||
_, address = PlaceSanitizer([sanitizer_args]).process_names(PlaceInfo(pi))
|
||||
_, address = PlaceSanitizer([sanitizer_args], def_config).process_names(PlaceInfo(pi))
|
||||
|
||||
return sorted([(p.kind, p.name) for p in address])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user