From 949ed0f2fc25ae461faa77a4409893b796d02c4b Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 18 八月 2025 13:39:44 +0800 Subject: [PATCH] 只订阅加想的票 --- code_attribute/code_data_util.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code_attribute/code_data_util.py b/code_attribute/code_data_util.py index 2725f06..bfe478d 100644 --- a/code_attribute/code_data_util.py +++ b/code_attribute/code_data_util.py @@ -4,14 +4,12 @@ # 鑲$エ浠g爜鐩稿叧鐨勫弬鏁� import decimal -import time from code_attribute import gpcode_manager -from db import mysql_data_delegate as mysql_data, redis_manager_delegate as redis_manager +from db import redis_manager_delegate as redis_manager from db.mysql_data_delegate import Mysqldb from db.redis_manager_delegate import RedisUtils from utils import tool -from utils.tool import async_call __db = 0 _redisManager = redis_manager.RedisManager(0) @@ -20,7 +18,7 @@ # 浠g爜瀵瑰簲鐨勪环鏍兼槸鍚︽纭� def is_same_code_with_price(code, price): # 鏄ㄦ棩鏀剁洏浠� - price_close = gpcode_manager.CodePrePriceManager.get_price_pre_cache(code) + price_close = gpcode_manager.CodePrePriceManager().get_price_pre_cache(code) max_price = tool.to_price(decimal.Decimal(str(price_close)) * decimal.Decimal(tool.get_limit_up_rate(code))) min_price = tool.to_price(decimal.Decimal(str(price_close)) * decimal.Decimal(tool.get_limit_down_rate(code))) if min_price <= decimal.Decimal(str(price)) <= max_price: -- Gitblit v1.8.0