diff --git a/api/app.py b/api/app.py index 3b53915..3f17c65 100644 --- a/api/app.py +++ b/api/app.py @@ -91,8 +91,7 @@ async def get_source(source_id: int, include_geom: bool = False) -> Sources: async with async_session() as session: select_stmt = select( - *[c for c in schemas.Sources.__table__.c if c.name not in ['rgeom', 'web_geom']], - func.ST_AsGeoJSON(schemas.Sources.rgeom).label("geometry"), + *[c for c in schemas.Sources.__table__.c if c.name not in ['rgeom', 'web_geom']] ).where(schemas.Sources.source_id == source_id) results = await session.execute(select_stmt)