From c98c233782729fdbd4dd175ad1df5fb6eefeb100 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 11 六月 2024 17:52:13 +0800
Subject: [PATCH] bug修复

---
 main.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/main.py b/main.py
index 47c3551..f8dac3c 100644
--- a/main.py
+++ b/main.py
@@ -303,7 +303,7 @@
                 code_market_manager.set_market_info(result)
                 code = result[0]
                 # 姝h偂闇�瑕佸姞杞芥澘鍧�
-                if code.find("11")!=0 and  code.find("12")!=0:
+                if code.find("11") != 0 and code.find("12") != 0:
                     limit_up_price = tool.get_limit_up_price(code, result[8])
 
                     KPLCodeJXBlockManager().load_jx_blocks(result[0], result[3],
@@ -350,8 +350,7 @@
     huaxin_trade_data_update.run()
 
     # 瀹氭椂鎷夊彇寮�鐩樺暒娑ㄥ仠鏁版嵁
-    PullTask.run_limit_up_task(__kpl_limit_up_callback)
-
+    threading.Thread(target=lambda: PullTask.run_limit_up_task(__kpl_limit_up_callback), daemon=True).start()
     # 浠跨湡浜ゆ槗涓嶈繍琛屼氦鏄撳鎴风
     # # ===========杩愯浜ゆ槗澶栭儴API==========
     #

--
Gitblit v1.8.0