Example #1
0
 def check(self, rosters, team, teamLimits):
     rosterKey = None
     if team is 1:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1
     elif team is 2:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2
     if rosterKey in rosters:
         accountsInfo = rosters[rosterKey]
     else:
         accountsInfo = {}
     return isTeamValid(accountsInfo, teamLimits)
Example #2
0
 def check(self, rosters, team, teamLimits):
     rosterKey = None
     if team is 1:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1
     elif team is 2:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2
     if rosterKey in rosters:
         accountsInfo = rosters[rosterKey]
     else:
         accountsInfo = {}
     return isTeamValid(accountsInfo, teamLimits)
Example #3
0
 def check(self, rosters, team, teamLimits):
     return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)
Example #4
0
 def check(self, rosters, team, teamLimits):
     return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)