Only count public datasets on the source status

This is more in line with what is done on the orgs/groups pages
This commit is contained in:
amercader 2013-03-18 16:41:01 +00:00
parent cb80ac784e
commit c76b7d95f3
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ def harvest_source_show_status(context, data_dict):
.join(harvest_model.HarvestObject) \
.filter(harvest_model.HarvestObject.harvest_source_id==source.id) \
.filter(harvest_model.HarvestObject.current==True) \
.filter(model.Package.state==u'active')
.filter(model.Package.state==u'active') \
.filter(model.Package.private==False)
out['total_datasets'] = packages.count()
return out