| | |
| | | statistic_list = [(k, statistic[k]) for k in statistic] |
| | | statistic_list.sort(key=lambda x: x[1], reverse=True) |
| | | fresults = [] |
| | | limit_up_records = KPLLimitUpDataRecordManager.list_all_cache(tool.get_now_date_str()) |
| | | limit_up_count_dict = {} |
| | | if limit_up_records: |
| | | for d in limit_up_records: |
| | | limit_up_count_dict[d[3]] = d[12] |
| | | |
| | | for x in statistic_list: |
| | | fresults.append((x[0], gpcode_manager.get_code_name(x[0]), x[1])) |
| | | fresults.append((x[0], gpcode_manager.get_code_name(x[0]), x[1],limit_up_count_dict.get(x[0]))) |
| | | |
| | | fresults = fresults[:30] |
| | | response_data = json.dumps({"code": 0, "data": fresults}) |
| | | elif url.path == "/get_h_cancel_data": |