Administrator
2024-08-28 bda4216d608a12db7132c97083c19ecdad48d78f
code_attribute/code_data_util.py
@@ -19,8 +19,6 @@
# 代码对应的价格是否正确
def is_same_code_with_price(code, price):
    if code == '600066':
        print('进入调试')
    # 昨日收盘价
    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)))
@@ -84,7 +82,9 @@
        @return:
        """
        fresults = cls.__mysql.select_one(f"select count(code) from kpl_zylt_volume where update_time >= '{tool.get_now_date_str()}'")
        return fresults[0]
        if fresults:
            return fresults[0]
        return 0