From 6cccbb61c96025e67a37ed64a41175e64f810f07 Mon Sep 17 00:00:00 2001 From: amercader Date: Wed, 7 Mar 2012 12:10:32 +0000 Subject: [PATCH] Bug fix, new job count property had not been updated --- ckanext/harvest/commands/harvester.py | 2 +- ckanext/harvest/templates/source/read.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/harvest/commands/harvester.py b/ckanext/harvest/commands/harvester.py index 01e91cc..1409b85 100644 --- a/ckanext/harvest/commands/harvester.py +++ b/ckanext/harvest/commands/harvester.py @@ -253,7 +253,7 @@ class Harvester(CkanCommand): print ' active: %s' % source['active'] print ' user: %s' % source['user_id'] print 'publisher: %s' % source['publisher_id'] - print ' jobs: %s' % len(source['jobs']) + print ' jobs: %s' % source['status']['job_count'] print '' def print_harvest_jobs(self, jobs): diff --git a/ckanext/harvest/templates/source/read.html b/ckanext/harvest/templates/source/read.html index 8c0c3d9..f75e5e9 100644 --- a/ckanext/harvest/templates/source/read.html +++ b/ckanext/harvest/templates/source/read.html @@ -73,7 +73,7 @@ Total jobs - ${len(c.source.jobs)} + ${c.source.status.job_count} Status