From 65afea1ba534b51f947cbe7989d7f4d650bbc9e6 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 04 十一月 2024 18:29:00 +0800
Subject: [PATCH] 代码异常保护

---
 third_data/kpl_limit_up_data_manager.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/third_data/kpl_limit_up_data_manager.py b/third_data/kpl_limit_up_data_manager.py
index 00d5b98..85a3413 100644
--- a/third_data/kpl_limit_up_data_manager.py
+++ b/third_data/kpl_limit_up_data_manager.py
@@ -52,7 +52,7 @@
         records = get_today_history_limit_up_datas_cache()
         # 鎸変唬鐮佹帓搴�
         # {"浠g爜":锛堜唬鐮侊紝娑ㄥ仠鍘熷洜, 娑ㄥ仠鏃堕棿, 鍑犵増锛墋
-        current_code_block_dict = {x[0]: (x[0], x[2], x[5], x[4]) for x in current_limit_up_datas}
+        current_code_block_dict = {x[0]: (x[0], x[5], x[2], x[4]) for x in current_limit_up_datas}
         record_code_block_dict = {x[3]: (x[3], x[2], x[5], x[12]) for x in records}
         # 鏍规嵁娑ㄥ仠鍘熷洜缁熻
         # {"鏉垮潡":{浠g爜}}
@@ -228,7 +228,7 @@
 
         block_count_list = [(k, block_count_dict[k]) for k in block_count_dict]
         block_count_list.sort(key=lambda x: x[1], reverse=True)
-        block_count_list = block_count_list[:20]
+        block_count_list = block_count_list[:50]
         # [(娑ㄥ仠鍘熷洜,绱娑ㄥ仠娆℃暟,杩炵画娆℃暟)]
         fdatas = []
         today_records_code_dict = {d[3]: d for d in self.__history_limit_up_day_datas.get(now_day)}

--
Gitblit v1.8.0