better error handling

This commit is contained in:
Yannik Schmidt
2021-10-10 12:36:30 +02:00
parent bfdb673202
commit 1663a4f0d6
2 changed files with 9 additions and 4 deletions

View File

@@ -29,13 +29,19 @@
<td style="line-height: 45px;"><a target="_blank" href="/get-file?basename={{ bd.docName }}">{{ bd.docName }}</a>
{% if bd.outdated %}<p style="color: red;">(neueres Dokument verfügbar: {{ bd.inDocumentDate.strftime("%d.%m.%Y") }})</p>{% endif %}
</td>
<td style="line-height: 45px;">{{ bd.location }}</td>
<td style="line-height: 45px;
{% if bd.location == "Fehler" %}color: red;
{% endif %}">
{{ bd.location }}</td>
{% if bd.blowerdoorDate %}
<td style="line-height: 45px;">{{ bd.blowerdoorDate }}</td>
{% else %}
<td style="line-height: 45px;">0000 - Keine Informationen Gefunden</td>
{% endif %}
<td style="line-height: 45px;">{{ bd.customer }}</td>
<td style="line-height: 45px;
{% if bd.location == "Fehler" %}color: red;
{% endif %}">
{{ bd.customer }}</td>
<td style="line-height: 45px;">{{ bd.pdfDate.strftime("%Y/%m/%d") }}</td>
</tr>
{% endfor %}