From 9c1bcbc5f59a8e28df43dc0b6a28b8195fbe7b9b Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 20 Mar 2024 08:58:51 +0100 Subject: [PATCH 1/3] 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) -- 2.45.2 From c9eecf0a29f89e8395b2d82d20795af097eeec06 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 20 Mar 2024 09:14:26 +0100 Subject: [PATCH 2/3] create temporary boat reservation feature --- templates/includes/macros.html.tera | 14 ++++++++++++++ templates/kiosk.html.tera | 1 + templates/log.html.tera | 1 + 3 files changed, 16 insertions(+) diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index b54df4d..28f568c 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -1,3 +1,17 @@ +{% macro boatreservation() %} +
+

Bootsreservierungen

+
+
    +
  • 22.04. | Christian Gusenbauer | Boot: Linz
  • +
+
+
+{% endmacro boatreservation %} {% macro header(loggedin_user) %}
diff --git a/templates/kiosk.html.tera b/templates/kiosk.html.tera index 149d157..e03a452 100644 --- a/templates/kiosk.html.tera +++ b/templates/kiosk.html.tera @@ -9,6 +9,7 @@ {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
{% endif %} + {{ macros::boatreservation() }}