Skip to content

Commit

Permalink
[#1668] Show only active users on cli
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelb committed Jun 26, 2014
1 parent 18eaeea commit c876d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/cli.py
Expand Up @@ -389,7 +389,7 @@ class SearchIndexCommand(CkanCommand):
Usage:
search-index [-i] [-o] [-r] [-e] rebuild [dataset_name] - reindex dataset_name if given, if not then rebuild
full search index (all datasets)
search-index rebuild_fast - reindex using multiprocessing using all cores.
search-index rebuild_fast - reindex using multiprocessing using all cores.
This acts in the same way as rubuild -r [EXPERIMENTAL]
search-index check - checks for datasets not indexed
search-index show DATASET_NAME - shows index of a dataset
Expand Down Expand Up @@ -746,7 +746,7 @@ def get_user_str(self, user):
def list(self):
import ckan.model as model
print 'Users:'
users = model.Session.query(model.User)
users = model.Session.query(model.User).filter_by(state = 'active')
print 'count = %i' % users.count()
for user in users:
print self.get_user_str(user)
Expand Down

0 comments on commit c876d7b

Please sign in to comment.