From 9c1bcbc5f59a8e28df43dc0b6a28b8195fbe7b9b Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 20 Mar 2024 08:58:51 +0100 Subject: [PATCH] don't count 'externe steuerkilometer' as guest kms --- src/model/stat.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/stat.rs b/src/model/stat.rs index c53c267..165c455 100644 --- a/src/model/stat.rs +++ b/src/model/stat.rs @@ -73,7 +73,8 @@ WHERE u.id NOT IN ( WHERE ro.name = 'Donau Linz' ) AND l.distance_in_km IS NOT NULL -AND l.arrival LIKE '{year}-%'; +AND l.arrival LIKE '{year}-%' +AND u.name != 'Externe Steuerperson'; " )) .fetch_one(db)