Skip to content

Commit

Permalink
return id and label for monument detail by slug
Browse files Browse the repository at this point in the history
  • Loading branch information
p3t3r67x0 committed Feb 4, 2025
1 parent d83fe62 commit 3aee6a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/monument.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async def get_monument_by_slug(session: AsyncSession, slug: str):
)
SELECT
ST_AsGeoJSON(m.wkb_geometry, 15)::jsonb AS geojson,
COALESCE(m.street || ' ' || m.housenumber, m.street) AS label,
m.id,
m.object_id,
m.slug,
m.street,
Expand Down

0 comments on commit 3aee6a0

Please sign in to comment.