def make_transfer(self, tipper, tippee, amount, context='tip', team=None, status='succeeded'): wallet_from, wallet_to = '-%i' % tipper, '-%i' % tippee t_id = prepare_transfer( self.db, tipper, tippee, amount, context, wallet_from, wallet_to, team=team ) _record_transfer_result(self.db, t_id, status) return t_id
def make_transfer(self, tipper, tippee, amount, context='tip', team=None, status='succeeded'): t_id = prepare_transfer(self.db, tipper, tippee, amount, context, '-1', '-2', team=team) _record_transfer_result(self.db, t_id, status) return t_id