From 55fc8b6db1ad63fb28abf2679ecd88c939a437e7 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 12 Nov 2023 15:22:30 +0100 Subject: [PATCH] push --- templates/ergo.final.html.tera | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/ergo.final.html.tera b/templates/ergo.final.html.tera index a996e15..4e54637 100644 --- a/templates/ergo.final.html.tera +++ b/templates/ergo.final.html.tera @@ -12,8 +12,9 @@
Dirty Thirty

-

{% for stat in thirty %}{{ stat.name }} {{ stat.dob }} {{ stat.weight }} {{ stat.sex }} Donau Linz {{ stat.result }} - {% endfor %} +
+{% for stat in thirty %}{% set names = stat.name | split(pat=" ") %}{% set lastname_index = names | length - 1 %}{% set lastname = names[lastname_index] %}{{ lastname }} {% for name in names %}{% if loop.index != lastname_index +1 %}{{ name }} {% endif %}{% endfor %} {{ stat.dob }} {{ stat.weight }} {{ stat.sex }} DLI {{ stat.result }} +{% endfor %}

@@ -21,8 +22,12 @@
Dirty Dozen

-

{% for stat in dozen %}{{ stat.name }} {{ stat.dob }} {{ stat.weight }} {{ stat.sex }} Donau Linz {{ stat.result }} - {% endfor %} +
{% for stat in dozen %} + {% set names = stat.name | split(pat=" ") %} + {% set lastname_index = names | length - 1 %} + {% set lastname = names[lastname_index] %} + {{ lastname }};{% for name in names %}{% if loop.index != lastname_index +1 %}{{ name }} {% endif %}{% endfor %};{{ stat.dob }};{{ stat.weight }};{{ stat.sex }};DLI;{{ stat.result }}
+ {% endfor %}