コード例 #1
0
 def _get_districtlist_cache_keys_and_controllers(cls, years):
     cache_keys_and_controllers = []
     for year in filter(None, years):
         cache_keys_and_controllers.append(
             (ApiDistrictListController.get_cache_key_from_format(year),
              ApiDistrictListController))
     return cache_keys_and_controllers
コード例 #2
0
 def _get_districtlist_cache_keys_and_controllers(cls, years):
     cache_keys_and_controllers = []
     for year in filter(None, years):
         cache_keys_and_controllers.append(
             (ApiDistrictListController.get_cache_key_from_format(year), ApiDistrictListController)
         )
     return cache_keys_and_controllers