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

Commit

Permalink
Include team members in masspay
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Sep 1, 2016
1 parent 5b32480 commit 9fcd1d6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions gratipay/billing/exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,20 @@ def get_ready_payout_routes_by_network(db, network):
) > 0
OR -- Include green-lit Gratipay 1.0 balances
OR -- Include team members
(SELECT count(*)
FROM current_takes ct
JOIN teams t ON ct.team_id = t.id
WHERE ct.participant_id = p.id
AND t.is_approved IS TRUE
AND t.is_closed IS NOT TRUE
) > 0
p.status_of_1_0_payout='pending-payout'
OR -- Include green-lit Gratipay 1.0 balances
----- TODO: Include team members once process_takes is implemented
p.status_of_1_0_payout='pending-payout'
)
""", (network,))
Expand Down

0 comments on commit 9fcd1d6

Please sign in to comment.