File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,8 @@ async def query(
338338 ) -> Tuple [FeatureCollection , int ]:
339339 """Build and run Pg query."""
340340
341- geometry_column = self .geometry_column (geom )
341+ geometry_columns = self .geometry_columns or []
342+ selected_geom_column = self .geometry_column (geom )
342343
343344 sql_query = """
344345 WITH
@@ -388,13 +389,13 @@ async def query(
388389 ),
389390 id_column = logic .V (self .id_column ),
390391 geometry_q = self ._geom (
391- geometry_column = geometry_column ,
392+ geometry_column = selected_geom_column ,
392393 bbox_only = bbox_only ,
393394 simplify = simplify ,
394395 ),
395- geom_columns = [g .name for g in self . geometry_columns ],
396+ geom_columns = [g .name for g in geometry_columns ],
396397 )
397- print ( q , p )
398+
398399 async with pool .acquire () as conn :
399400 items = await conn .fetchval (q , * p )
400401
You can’t perform that action at this time.
0 commit comments