show datas ordered by most recent

This commit is contained in:
Simon Vieille 2020-04-23 15:00:57 +02:00
parent 2e0934c4bf
commit 04c8300092
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

@ -19,7 +19,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for item in temperatures %} {% for item in temperatures|reverse %}
{% if item.value >= 27 %} {% if item.value >= 27 %}
{% set class = 'table-info' %} {% set class = 'table-info' %}
{% elseif item.value <= 22 %} {% elseif item.value <= 22 %}
@ -54,7 +54,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for item in hygrometries %} {% for item in hygrometries|reverse %}
{% if item.value >= 50 %} {% if item.value >= 50 %}
{% set class = 'table-danger' %} {% set class = 'table-danger' %}
{% elseif item.value >= 40 %} {% elseif item.value >= 40 %}