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))
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
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