- forcing browser to refresh images via timestamp

This commit is contained in:
Ulrich Knechtelsdorfer
2016-11-28 00:17:35 +01:00
parent 8ae2683d71
commit a96342c815
5 changed files with 10 additions and 5 deletions

View File

@@ -4,10 +4,10 @@
<h1> Statistik </h1>
<div>
<h2> Bierkonsum </h2>
<img src="{{ url_for('static', filename='total.png') }}">
<img src="{{ url_for('static', filename='total.png') }}?{{timestamp}}">
{% if user %}
{% set fils = "total%03d.png" % user.id %}
<img src="{{ url_for('static', filename=fils) }}">
<img src="{{ url_for('static', filename=fils) }}?{{timestamp}}">
{% endif %}
</div>
<h1> Abrechnung </h1>