hide external boat in stats #151

Merged
philipp merged 1 commits from hide-external-boat-in-stats into main 2024-01-05 20:43:12 +01:00

View File

@ -20,7 +20,7 @@ impl Stat {
"
SELECT (SELECT name FROM boat WHERE id=logbook.boat_id) as name, CAST(SUM(distance_in_km) AS INTEGER) AS rowed_km
FROM logbook
WHERE arrival LIKE '{year}-%'
WHERE arrival LIKE '{year}-%' AND name != 'Externes Boot'
GROUP BY boat_id
ORDER BY rowed_km DESC;
")