From b50471d339fecd8ad087af016e9bd3f692b8ffae Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 5 Jan 2024 20:42:20 +0100 Subject: [PATCH] hide external boat in stats --- src/model/stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/stat.rs b/src/model/stat.rs index dcf66b8..9b2e0e3 100644 --- a/src/model/stat.rs +++ b/src/model/stat.rs @@ -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; ") -- 2.45.2