def getStatsVO(amountStepsInLeagues, amountBattlesInLeagues, amountSteps,
               amountBattles):
    return {
        'stripesInLeague':
        getStatVO(ranked_formatters.getIntegerStrStat(amountStepsInLeagues),
                  'stripesInLeague', 'stripes', 'stripesInLeague'),
        'battlesInLeague':
        getStatVO(ranked_formatters.getIntegerStrStat(amountBattlesInLeagues),
                  'battlesInLeague', 'battles', 'battlesInLeague'),
        'stripesTotal':
        getStatVO(ranked_formatters.getIntegerStrStat(amountSteps),
                  'stripesTotal', 'stripesTotal', 'stripesTotal'),
        'battlesTotal':
        getStatVO(ranked_formatters.getIntegerStrStat(amountBattles),
                  'battlesTotal', 'battlesTotal', 'battlesTotal')
    }
 def __setQualificationSteps(self, divisionID):
     steps = self.__rankedController.getStatsComposer().divisionsStats.get(
         divisionID, {}).get('stepsCount', 0)
     self.as_setQualificationStepsDataS(
         shared_vos.getStatVO(
             ranked_formatters.getIntegerStrStat(float(steps)),
             'qualificationSteps', 'steps', 'qualificationSteps'))
Пример #3
0
def getRatingVO(rating):
    return {
        'icon': 'position',
        'label': '',
        'value': ranked_formatters.getIntegerStrStat(rating)
    }