Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit bfa7043

Browse files
committed
Don't add the geometry to sources loads
1 parent fbbf505 commit bfa7043

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ async def get_source(source_id: int, include_geom: bool = False) -> Sources:
9191
async with async_session() as session:
9292

9393
select_stmt = select(
94-
*[c for c in schemas.Sources.__table__.c if c.name not in ['rgeom', 'web_geom']],
95-
func.ST_AsGeoJSON(schemas.Sources.rgeom).label("geometry"),
94+
*[c for c in schemas.Sources.__table__.c if c.name not in ['rgeom', 'web_geom']]
9695
).where(schemas.Sources.source_id == source_id)
9796

9897
results = await session.execute(select_stmt)

0 commit comments

Comments
 (0)