Skip to content

Commit

Permalink
Explicitly label the sq.func('count') interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Aug 26, 2013
1 parent 2bc1d8e commit bf2994d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tahrir_api/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def _make_leaderboard(self, start=None, stop=None):
"""

leaderboard = self.session\
.query(Person, func.count(Person.assertions))\
.query(Person, func.count(Person.assertions).label('count_1'))\
.join(Assertion)

if start and stop:
Expand Down

0 comments on commit bf2994d

Please sign in to comment.