[#5] Fix counts on jobs listing

This commit is contained in:
amercader 2013-02-05 16:40:22 +00:00
parent 5956e5a9d5
commit 413ef8786c
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@
<td>{{ h.render_datetime(job.finished, with_hours=True) }}</td>
<td>{{ _(job.status) }}</td>
{% for action in ['added', 'updated', 'deleted', 'errored'] %}
{% if action in stats and stats[action] > 0 %}
<td>{{ stats[action] }}</td>
{% if action in job.stats and job.stats[action] > 0 %}
<td>{{ job.stats[action] }}</td>
{% else %}
<td>0</td>
{% endif %}