Compare commits

...

2 Commits

Author SHA1 Message Date
a2005c55aa Merge pull request 'show boats w/o km' (#346) from staging into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m28s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 5m40s
Reviewed-on: #346
2024-04-06 21:17:43 +02:00
da446c5073 show boats w/o km
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m23s
CI/CD Pipeline / deploy-staging (push) Successful in 5m47s
CI/CD Pipeline / deploy-main (push) Has been skipped
2024-04-06 21:17:23 +02:00

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