From 9cbbdb38c27926d99cc5ea17392c66f770805405 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 5 Jan 2024 22:23:36 +0100 Subject: [PATCH] remove external cox from stat --- 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 9b2e0e3..f91cb29 100644 --- a/src/model/stat.rs +++ b/src/model/stat.rs @@ -101,7 +101,7 @@ FROM ( ) u INNER JOIN rower r ON u.id = r.rower_id INNER JOIN logbook l ON r.logbook_id = l.id -WHERE l.distance_in_km IS NOT NULL AND l.arrival LIKE '{year}-%' +WHERE l.distance_in_km IS NOT NULL AND l.arrival LIKE '{year}-%' AND u.name != 'Externe Steuerperson' GROUP BY u.name ORDER BY rowed_km DESC; "