Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2dfccc commit 138d2fdCopy full SHA for 138d2fd
2 files changed
ckan/logic/action/get.py
@@ -1320,7 +1320,7 @@ def user_show(context, data_dict):
1320
1321
if context.get('return_minimal'):
1322
log.warning('Use of the "return_minimal" in user_show is '
1323
- 'deprecated.')
+ 'deprecated.')
1324
return user_dict
1325
1326
if data_dict.get('include_datasets', False):
ckan/model/user.py
@@ -201,7 +201,8 @@ def number_created_packages(self):
201
import ckan.model as model
202
q = meta.Session.query(model.Package)\
203
.filter_by(creator_user_id=self.id)\
204
- .filter_by(state='active')
+ .filter_by(state='active')\
205
+ .filter_by(private=False)
206
return q.count()
207
208
def activate(self):
0 commit comments