chore: filter to query
This commit is contained in:
parent
eec1caa321
commit
ed65bb8127
5 changed files with 8 additions and 13 deletions
|
@ -3,10 +3,6 @@ SELECT
|
|||
c.id,
|
||||
c.date,
|
||||
c.notes,
|
||||
'I went to (yet another) concert!' AS description,
|
||||
'concert' AS type,
|
||||
|
||||
CONCAT('/music/concerts?id=', c.id) AS url,
|
||||
|
||||
CASE
|
||||
WHEN c.artist IS NOT NULL THEN
|
||||
|
@ -23,6 +19,7 @@ SELECT
|
|||
|
||||
json_build_object(
|
||||
'name', v.name,
|
||||
'name_short', trim(split_part(v.name, ',', 1)),
|
||||
'latitude', v.latitude,
|
||||
'longitude', v.longitude,
|
||||
'notes', v.notes
|
||||
|
|
Reference in a new issue