def getEventRankings(self, event_key):
        year = int(event_key[:4])
        event_short = event_key[4:]

        rankings = self._parse(
            self.FMS_API_EVENT_RANKINGS_URL_PATTERN %
            (year, self._get_event_short(event_short)),
            FMSAPIEventRankingsParser())
        return rankings
Пример #2
0
    def getEventRankings(self, event_key):
        year = int(event_key[:4])
        event_short = event_key[4:]

        event = Event.get_by_id(event_key)
        rankings, rankings2 = self._parse(
            self.FMS_API_EVENT_RANKINGS_URL_PATTERN % (year, self._get_event_short(event_short, event)),
            [FMSAPIEventRankingsParser(year), FMSAPIEventRankings2Parser(year)])
        return rankings, rankings2