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

Commit

Permalink
Only include opt-ins in payday script
Browse files Browse the repository at this point in the history
When a user tips an unclaimed account we create an entry in the
participants table for the tippee, with claimed_time set to NULL.
Tippers by definition must have claimed their account, so we can ignore
unclaimed accounts in the outer payday loop. This will help the numbers
line up better between the output of the payday script and the stats
page. (#37)
  • Loading branch information
chadwhitacre committed Jun 22, 2012
1 parent af93a87 commit 6ff6365
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gittip/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def payday():
PARTICIPANTS = """\
SELECT id, balance, stripe_customer_id
FROM participants
WHERE claimed_time IS NOT NULL
"""
participants = db.fetchall(PARTICIPANTS)
log("Fetched participants.")
Expand Down

0 comments on commit 6ff6365

Please sign in to comment.