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:
parent
cb80ac784e
commit
c76b7d95f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue