Пример #1
0
 def _get_team_events_cache_keys_and_controllers(cls, team_keys, years):
     cache_keys_and_controllers = []
     for team_key in filter(None, team_keys):
         for year in filter(None, years):
             cache_keys_and_controllers.append((ApiTeamEventsController.get_cache_key_from_format(team_key.id(), year), ApiTeamEventsController))
         cache_keys_and_controllers.append((ApiTeamHistoryEventsController.get_cache_key_from_format(team_key.id()), ApiTeamHistoryEventsController))
     return cache_keys_and_controllers
Пример #2
0
 def _get_team_events_cache_keys_and_controllers(cls, team_keys, years):
     cache_keys_and_controllers = []
     for team_key in filter(None, team_keys):
         for year in filter(None, years):
             cache_keys_and_controllers.append((ApiTeamEventsController.get_cache_key_from_format(team_key.id(), year), ApiTeamEventsController))
         cache_keys_and_controllers.append((ApiTeamHistoryEventsController.get_cache_key_from_format(team_key.id()), ApiTeamHistoryEventsController))
     return cache_keys_and_controllers