Ejemplo n.º 1
0
    def onSearchDate(self, evt):
        dailyData = DailyDataDAL.fetchAllByDate(self.dateInput.GetValue())

        scoreSum = 0
        for (userName, scores) in dailyData.dailyScore.items():
            scoreSum -= ScoreCalculation.calculateTotal(scores)
        self.score.SetLabel(str(scoreSum))
Ejemplo n.º 2
0
 def toStringList(self):
     result = list()
     for (userName, scoreList) in self.dailyScore.items():
         result.append([userName, " ".join(map(str, scoreList)), str(ScoreCalculation.calculateTotal(scoreList))])
     return result