Skip to content

Commit

Permalink
Get regular fields, not unaccented ones
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Dec 27, 2024
1 parent 79ae7c3 commit 09e628e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/thematic/geoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _admin_boundary_lookup_sql(
name_fields = [name_field + "_unaccented" for name_field in name_fields]

sql = (
f"SELECT gid_0, gid_1, gid_2, {name_fields[0]}, {name_fields[1]}, {name_fields[2]}"
f"SELECT gid_0, gid_1, gid_2, {country_name}, {region_name}, {subregion_name}"
f" FROM {dataset} WHERE country='{country_name}'"
)
if region_name is not None:
Expand Down

0 comments on commit 09e628e

Please sign in to comment.