be: filter canceled from stats ms payouts count
This commit is contained in:
parent
62ffd30208
commit
1ae16004e5
|
@ -149,6 +149,7 @@ def stats():
|
|||
proposal_milestone_payouts_count = db.session.query(func.count(Proposal.id)) \
|
||||
.join(Proposal.milestones) \
|
||||
.filter(Proposal.status == ProposalStatus.LIVE) \
|
||||
.filter(Proposal.stage != ProposalStage.CANCELED) \
|
||||
.filter(Milestone.stage == MilestoneStage.ACCEPTED) \
|
||||
.scalar()
|
||||
# Count contributions on proposals that didn't get funded for users who have specified a refund address
|
||||
|
|
Loading…
Reference in New Issue