Skip to content

Commit

Permalink
Fix a copy paste error that broke list command
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlwgriffiths committed Jul 11, 2016
1 parent b1937aa commit 87d7d9c
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 87d7d9c

Please sign in to comment.