feat:upgrade nepali package to 1.2.0 and remove hardcoded Koshi Province mapping
This commit is contained in:
3 files changed
+2
-4
No files matched your search
@@ -47,7 +47,6 @@ def _get_location_children(parent_list, parent_name, child_attr, ne=False):
|
||||
p_name = p.name
|
||||
p_name_ne = getattr(p, "name_nepali", None)
|
||||
|
||||
|
||||
if p_name == parent_name or p_name_ne == parent_name:
|
||||
selected_parent = p
|
||||
break
|
||||
@@ -330,7 +329,6 @@ def normalize_address(address_string: str) -> dict[str, Optional[str]]:
|
||||
):
|
||||
return True
|
||||
|
||||
|
||||
# Partial matches for English (e.g., "Pokhara" in "Pokhara Metropolitan City")
|
||||
# Only if token is at least 4 characters to avoid too many false positives
|
||||
if len(token) >= 4:
|
||||
|
||||
Reference in new issue
Block a user