Ejemplo n.º 1
0
 def _get_district_rankings_cache_keys_and_controllers(
         cls, district_shorts, years):
     cache_keys_and_controllers = []
     for district_short in filter(None, district_shorts):
         for year in filter(None, years):
             cache_keys_and_controllers.append(
                 (ApiDistrictRankingsController.get_cache_key_from_format(
                     district_short, year), ApiDistrictRankingsController))
     return cache_keys_and_controllers
Ejemplo n.º 2
0
 def _get_district_rankings_cache_keys_and_controllers(cls, district_shorts, years):
     cache_keys_and_controllers = []
     for district_short in filter(None, district_shorts):
         for year in filter(None, years):
             cache_keys_and_controllers.append(
                 (
                     ApiDistrictRankingsController.get_cache_key_from_format(district_short, year),
                     ApiDistrictRankingsController,
                 )
             )
     return cache_keys_and_controllers