Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Preening
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Aug 29, 2015
1 parent afe3e73 commit 7c9754e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gratipay/models/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,19 +908,19 @@ def get_giving_for_profile(self):
GIVING = """\
SELECT * FROM (
SELECT DISTINCT ON (s.team)
s.team as team_slug
, s.amount
, s.ctime
, s.mtime
, t.name as team_name
FROM payment_instructions s
JOIN teams t ON s.team = t.slug
SELECT DISTINCT ON (pi.team)
pi.team AS team_slug
, pi.amount
, pi.ctime
, pi.mtime
, t.name AS team_name
FROM payment_instructions pi
JOIN teams t ON pi.team = t.slug
WHERE participant = %s
AND t.is_approved is true
AND t.is_closed is not true
ORDER BY s.team
, s.mtime DESC
ORDER BY pi.team
, pi.mtime DESC
) AS foo
ORDER BY amount DESC
, team_slug
Expand Down

0 comments on commit 7c9754e

Please sign in to comment.