Skip to content
Browse files

Merge pull request #10 from brodul/ideas_bunch_fix

Fix for the ideas_bunch method.
  • Loading branch information...
2 parents be1d81b + aeda446 commit 454daaeb19485d743fe7e69e7e7bf31e33b61ece @mcdonc mcdonc committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 shootout/models.py
View
2 shootout/models.py
@@ -177,7 +177,7 @@ def get_by_tagname(cls, tag_name, with_joinedload=True):
def ideas_bunch(cls, order_by, how_many=10, with_joinedload=True):
query = cls.get_query(with_joinedload).join('author')
query = query.filter(cls.target == None).order_by(order_by)
- return query.limit(how_many)
+ return query.limit(how_many).all()
def user_voted(self, username):
return bool(self.voted_users.filter_by(username=username).first())

0 comments on commit 454daae

Please sign in to comment.
Something went wrong with that request. Please try again.