Exemple #1
0
 def doFirstCalculationsForTeam(self, team):
     if self.su.getCompletedTIMDsForTeam(team):
         if not self.su.teamCalculatedDataHasValues(team.calculatedData):
             team.calculatedData = DataModel.CalculatedTeamData()
         t = team.calculatedData
         firstCalculationDict(team, self)
         print('> Completed first calcs for ' + str(team.number))
Exemple #2
0
def makeTeamFromDict(d):
    if type(d) != dict: print(d)
    team = DataModel.Team(**d)
    if 'calculatedData' in d.keys():
        team.calculatedData = DataModel.CalculatedTeamData(
            **d['calculatedData'])
    return team
Exemple #3
0
def makeTeamFromDict(d):
    team = DataModel.Team(**d)  #I have no idea why this works
    if 'calculatedData' in d.keys():
        team.calculatedData = DataModel.CalculatedTeamData(
            **d['calculatedData'])
    return team