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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed redundant check during tip migration
Browse files Browse the repository at this point in the history
aandis committed Jan 24, 2016
1 parent a7a66da commit 0707b59
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions gratipay/models/team.py
Original file line number Diff line number Diff line change
@@ -158,19 +158,6 @@ def to_dict(self):
}

def migrate_tips(self):
payment_instructions = self.db.all("""
SELECT pi.*
FROM payment_instructions pi
JOIN teams t ON t.slug = pi.team
JOIN participants p ON t.owner = p.username
WHERE p.username = %s
AND pi.ctime < t.ctime
""", (self.owner, ))

# Make sure the migration hasn't been done already
if payment_instructions:
raise AlreadyMigrated

return self.db.one("""
WITH rows AS (

0 comments on commit 0707b59

Please sign in to comment.