Skip to content

Commit

Permalink
Merge pull request #200 from hotosm/actions/black
Browse files Browse the repository at this point in the history
Format Python code with psf/black push
  • Loading branch information
kshitijrajsharma authored Jan 12, 2024
2 parents b561e33 + 34a7d36 commit d8da49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query_builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ def convert_tags_pattern(query_string):
if cid
else f"""ST_within(geom,(select ST_SetSRID(ST_Extent(ST_makeValid(ST_GeomFromText('{wkt.dumps(loads(geometry.json()),decimals=6)}',4326))),4326)))"""
)

postgres_query = f"""select {select_query} from (select * , tableoid::regclass as osm_type from {table} where {row_filter_condition}) as sub_query"""
if single_category_where:
postgres_query += f" where {convert_tags_pattern(single_category_where)}"
Expand Down

0 comments on commit d8da49f

Please sign in to comment.