Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request getredash#1177 from someones/users_list_fix
Browse files Browse the repository at this point in the history
Fix: users list CLI command was broken
  • Loading branch information
arikfr authored Jul 11, 2016
2 parents d9938d8 + 894281b commit 2b8e953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redash/cli/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def list(organization=None):
"""List all users"""
if organization:
org = models.Organization.get_by_slug(organization)
users = models.Users.select().where(models.Users.org==org.id)
users = models.User.select().where(models.User.org==org.id)
else:
users = models.DataSource.select()
users = models.User.select()
for i, user in enumerate(users):
if i > 0:
print "-" * 20
Expand Down

0 comments on commit 2b8e953

Please sign in to comment.