show boats w/o km

This commit is contained in:
philipp 2024-04-06 21:17:23 +02:00
parent 37fcdb81bc
commit da446c5073

View File

@ -30,7 +30,7 @@ impl BoatStat {
SELECT
boat.id,
location.name AS location,
CAST(strftime('%Y', arrival) AS INTEGER) AS year,
CAST(strftime('%Y', COALESCE(arrival, 'now')) AS INTEGER) AS year,
CAST(SUM(COALESCE(distance_in_km, 0)) AS INTEGER) AS rowed_km
FROM
boat