Exemplo n.º 1
0
 def _on_power_ranking_query_response(
         self, data: Optional[Dict[str, Any]]) -> None:
     from ba.internal import cache_league_rank_data
     self._doing_power_ranking_query = False
     # important: *only* cache this if we requested the current season..
     if data is not None and data.get('s', None) is None:
         cache_league_rank_data(data)
     # always store a copy locally though (even for other seasons)
     self._league_rank_data = copy.deepcopy(data)
     self._update_for_league_rank_data(data)
Exemplo n.º 2
0
 def _on_power_ranking_query_response(
         self, data: Optional[Dict[str, Any]]) -> None:
     from ba.internal import cache_league_rank_data
     self._doing_power_ranking_query = False
     cache_league_rank_data(data)
     self._update_for_league_rank_data(data)