diff --git a/server.py b/server.py index de193d7..3182e77 100755 --- a/server.py +++ b/server.py @@ -28,11 +28,10 @@ def root(): allFiles = [] loaded = None for filename in glob.glob("static/files/*.pdf"): - loaded = parserBackend.load(filename) try: loaded = parserBackend.load(filename) except Exception: - loaded = BlowerdoorData(os.path.basename(filename), os.path.basename(filename), "", "", datetime.datetime.now(), datetime.datetime.now()) + loaded = BlowerdoorData(os.path.basename(filename), os.path.basename(filename), "Fehler", "Fehler", datetime.datetime.now(), datetime.datetime.now()) allFiles.append(loaded) # check duplicates diff --git a/templates/index.html b/templates/index.html index f75c2b6..78d7b69 100644 --- a/templates/index.html +++ b/templates/index.html @@ -29,13 +29,19 @@ {{ bd.docName }} {% if bd.outdated %}

(neueres Dokument verfügbar: {{ bd.inDocumentDate.strftime("%d.%m.%Y") }})

{% endif %} - {{ bd.location }} + + {{ bd.location }} {% if bd.blowerdoorDate %} {{ bd.blowerdoorDate }} {% else %} 0000 - Keine Informationen Gefunden {% endif %} - {{ bd.customer }} + + {{ bd.customer }} {{ bd.pdfDate.strftime("%Y/%m/%d") }} {% endfor %}