From 413ef8786c861c89a3cdedbb8a534f1c21e0c3e8 Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 5 Feb 2013 16:40:22 +0000 Subject: [PATCH] [#5] Fix counts on jobs listing --- ckanext/harvest/templates_new/job/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/harvest/templates_new/job/list.html b/ckanext/harvest/templates_new/job/list.html index 6e86f46..f383f24 100644 --- a/ckanext/harvest/templates_new/job/list.html +++ b/ckanext/harvest/templates_new/job/list.html @@ -37,8 +37,8 @@ {{ h.render_datetime(job.finished, with_hours=True) }} {{ _(job.status) }} {% for action in ['added', 'updated', 'deleted', 'errored'] %} - {% if action in stats and stats[action] > 0 %} - {{ stats[action] }} + {% if action in job.stats and job.stats[action] > 0 %} + {{ job.stats[action] }} {% else %} 0 {% endif %}