Compare commits

...

2 Commits

Author SHA1 Message Date
c199c3241e Merge pull request 'hide external boat in stats' (#150) from hide-external-boat-in-stats into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 15m22s
CI/CD Pipeline / deploy-staging (push) Successful in 17m54s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #150
2024-01-05 20:42:48 +01:00
b50471d339 hide external boat in stats
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
2024-01-05 20:42:20 +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;
")