Skip to content

Commit

Permalink
Fixes #71.
Browse files Browse the repository at this point in the history
  • Loading branch information
passiomatic committed Jul 26, 2014
1 parent f5006a6 commit 03fc844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coldsweat/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ def get_feed_entries(user, feed, *select):

def get_feeds(user, *select):
select = select or [Feed, Icon, fn.Count(Entry.id).alias('entries')]
q = Feed.select(*select).join(Icon).switch(Feed).join(Entry, JOIN_LEFT_OUTER).switch(Feed).join(Subscription).where(Subscription.user == user).group_by(Feed)

return q
q = Feed.select(*select).join(Icon).switch(Feed).join(Entry, JOIN_LEFT_OUTER).switch(Feed).join(Subscription).where(Subscription.user == user).group_by(Feed, Icon)
return q

# Groups

Expand Down

0 comments on commit 03fc844

Please sign in to comment.