Fixed statistic view date bug
This commit is contained in:
parent
58717022c5
commit
5f88a4f297
@ -88,7 +88,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td scope="col"> </td>
|
<td scope="col"> </td>
|
||||||
{% for date in log_stats.keys %}
|
{% for date in log_stats.keys %}
|
||||||
|
{% if interval == 'days' %}
|
||||||
<td scope="col">{{ date | date:'d.m' }}</td>
|
<td scope="col">{{ date | date:'d.m' }}</td>
|
||||||
|
{% else %}
|
||||||
|
<td scope="col">{{ date }}</td>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -381,6 +381,7 @@ def statistic_page(request: WSGIRequest) -> HttpResponse:
|
|||||||
context['errors'] = data.errors
|
context['errors'] = data.errors
|
||||||
if data.warnings:
|
if data.warnings:
|
||||||
context['warnings'] = data.warnings
|
context['warnings'] = data.warnings
|
||||||
|
context['interval'] = data.interval
|
||||||
context['log_stats'] = stats if not context['errors'] else None
|
context['log_stats'] = stats if not context['errors'] else None
|
||||||
elif request.method == 'GET':
|
elif request.method == 'GET':
|
||||||
form = StatisticForm()
|
form = StatisticForm()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user