| | |
| | | 0, 0] for k in record_reason_dict] |
| | | try: |
| | | for b in limit_up_reason_statistic_info: |
| | | codes_ = BlockSpecialCodesManager().get_block_codes(b) |
| | | codes_ = BlockSpecialCodesManager().get_block_codes(b[0]) |
| | | if not codes_: |
| | | codes_ = set() |
| | | b[4] = len(set(record_reason_dict[b])&set(codes_)) |
| | | b[4] = len(set(record_reason_dict[b[0]])&set(codes_)) |
| | | except: |
| | | pass |
| | | limit_up_reason_statistic_info.sort(key=lambda x: x[1] - x[2]) |
| | |
| | | if type_ == 0: |
| | | fdatas = RealTimeKplMarketData.top_in_list_cache |
| | | if not fdatas: |
| | | datas = self.__kplDataManager.get_data(KPLDataType.JINGXUAN_RANK.value) |
| | | datas = self.__kplDataManager.get_data(KPLDataType.JINGXUAN_RANK) |
| | | fdatas = datas |
| | | elif type_ == 1: |
| | | fdatas = RealTimeKplMarketData.top_out_list_cache |
| | | if not fdatas: |
| | | datas = self.__kplDataManager.get_data(KPLDataType.JINGXUAN_RANK_OUT.value) |
| | | datas = self.__kplDataManager.get_data(KPLDataType.JINGXUAN_RANK_OUT) |
| | | fdatas = datas |
| | | response_data = json.dumps({"code": 0, "data": fdatas}) |
| | | except: |