Participants who received tips directly under Gittipay 1.0 will have their tips migrated if and when they become the owner of a new Gratipay 2.0 team.
This mixin provides tip migration for teams.
migrate_all_tips(db, print=<built-in function print>)¶
Migrate tips for all teams.
- db (GratipayDB) – a database object
- print (func) – a function that takes lines of log output
This function loads
Teamobjects for all Teams where the owner had tips under Gratipay 1.0 but those tips have not yet been migrated into payment instructions under Gratipay 2.0. It then migrates the tips using
This function is wrapped in a script,
bin/migrate-tips.py, which is used during payday.