Skip to content

Commit

Permalink
View: Correctly count the length of the view using self._rows
Browse files Browse the repository at this point in the history
self._total_rows contained total amount of rows in a view. Use
len(self._rows) to determine the correct length of the result.
  • Loading branch information
Jyrki Pulliainen committed Sep 23, 2010
1 parent 1483297 commit 8bef731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trombi/client.py
Expand Up @@ -526,7 +526,7 @@ def __init__(self, result):
self._rows = result['rows']

def __len__(self):
return self._total_rows
return len(self._rows)

def __iter__(self):
return iter(self._rows)
Expand Down

0 comments on commit 8bef731

Please sign in to comment.