Skip to content

Commit

Permalink
Critical bug fix on country scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 15, 2023
1 parent b7250a1 commit f6ca27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query_builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,15 @@ def generate_where_clause_indexes_case(
# if table_name == "ways_poly" or table_name == "nodes":
# where_clause += f" and (country IN ({c_id}))"
# else:
where_clause += f" and (country @> ARRAY[{c_id}])"
where_clause += f" and (country <@ ARRAY[{c_id}])"
if (
country_export
): # ignore the geometry take geom from the db itself by using precalculated field
if c_id:
# if table_name == "ways_poly" or table_name == "nodes":
# where_clause = f"country IN ({c_id})"
# else:
where_clause = f"country @> ARRAY[{c_id}]"
where_clause = f"country <@ ARRAY[{c_id}]"
return where_clause


Expand Down

0 comments on commit f6ca27f

Please sign in to comment.