From 500e2f3db6ce9ab2f6f06e7b3b23ce15f71db59d Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 03 八月 2023 11:19:21 +0800
Subject: [PATCH] redis封装

---
 code_attribute/first_target_code_data_processor.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py
index ee3ba55..966fe00 100644
--- a/code_attribute/first_target_code_data_processor.py
+++ b/code_attribute/first_target_code_data_processor.py
@@ -134,7 +134,7 @@
                                                      volumes_data)
             except Exception as e:
                 logger_first_code_record.error(f"{code}:{str(e)}")
-    gpcode_manager.FirstCodeManager.add_record(codes)
+    gpcode_manager.FirstCodeManager().add_record(codes)
     # 鍒濆鍖栨澘鍧椾俊鎭�
     for code in codes:
         block_info.init_code(code)
@@ -190,8 +190,8 @@
             limit_up_time = tool.get_now_time_str()
         if is_limit_up:
             # 鍔犲叆棣栨澘娑ㄥ仠
-            gpcode_manager.FirstCodeManager.add_limited_up_record([code])
-        pricePre = gpcode_manager.get_price_pre_cache(code)
+            gpcode_manager.FirstCodeManager().add_limited_up_record([code])
+        pricePre = gpcode_manager.CodePrePriceManager.get_price_pre_cache(code)
         if pricePre is None:
             inited_data.re_set_price_pres([code])
 

--
Gitblit v1.8.0