From 468034c801553394ef7d792c041b439e93e04e10 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Wed, 8 Sep 2021 12:05:14 +0200 Subject: [PATCH] small improvements --- eg_geiss_bauherren.py | 2 +- templates/head.html | 9 +++++++++ templates/index.html | 10 ++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/eg_geiss_bauherren.py b/eg_geiss_bauherren.py index 471a761..5a543ef 100644 --- a/eg_geiss_bauherren.py +++ b/eg_geiss_bauherren.py @@ -51,7 +51,7 @@ def load(filename): ISO_CAL_KW_LOC = 1 kwStartDate = startDateParsed.isocalendar()[ISO_CAL_KW_LOC] if kw < kwStartDate: - blowerdoorDate = "{} KW-{}".format(startDateParsed.year +1, kw) + blowerdoorDate = "{} KW-{:02d}".format(startDateParsed.year +1, kw) else: blowerdoorDate = "{} KW-{}".format(startDateParsed.year, kw) diff --git a/templates/head.html b/templates/head.html index 6105517..0d3ea3a 100644 --- a/templates/head.html +++ b/templates/head.html @@ -17,6 +17,15 @@ + + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 935b156..c3caa56 100644 --- a/templates/index.html +++ b/templates/index.html @@ -11,11 +11,11 @@ cellspacing="0"> - Dokument + Dokument Ort Blowerdoor KW Bauherr - Dokument Erstellungsdatum + Dokument Erstellungsdatum (Jahr/Monat/Tag) @@ -25,7 +25,7 @@ {{ bd.location }} {{ bd.blowerdoorDate }} {{ bd.customer }} - {{ bd.pdfDate.strftime("%d.%m.%Y") }} + {{ bd.pdfDate.strftime("%Y/%m/%d") }} {% endfor %} @@ -33,7 +33,9 @@