Participants who are members of a
Teammay take money from the team during
Payday. Only the team owner may add a new member, by setting their take to a penny, but team owners may only set their take to a penny—no more. Team owners may also remove members, by setting their take to zero, as may the members themselves, who may also set their take to whatever they wish.
The total amount of money the team distributes to participants (including the owner) during payday. Read-only; equal to
The number of participants (including the owner) that the team distributes money to during payday. Read-only; modified by
set_take_for(participant, take, recorder, cursor=None)¶
Set the amount a participant wants to take from this team during payday.
the new take as a py:class:~decimal.Decimal
It is a bug to pass in a
recorderthat is suspicious, unclaimed, or without a verified email and identity. Furthermore,
NotAllowedis raised in the following circumstances:
participantnor the team owner
recorderis the team owner and
takeis neither zero nor $0.01
participantisn’t already on the team
participant‘s take from this team, or 0.
participant‘s take from this team at the beginning of the last completed payday, or 0.
update_taking(old_takes, new_takes, cursor=None, member=None)¶
Update taking amounts based on the difference between old_takes and new_takes.
Update the computed values on the team.
Return a list of member takes for a team.
Get the takes, compute the actual amounts, and return an OrderedDict.
recorderis not allowed to set the take for