Administrator
2024-03-27 87103d9325be0601b6f33eab737fc541b56e9577
log_module/log_export.py
@@ -436,7 +436,7 @@
# 加载华鑫成交的卖单
def load_huaxin_transaction_sell_no(code=None,date = tool.get_now_date_str()):
def load_huaxin_transaction_sell_no(code=None, date=tool.get_now_date_str()):
    path = f"{constant.get_path_prefix()}/logs/huaxin/l2/transaction_sell_order.{date}.log"
    fdatas = {}
    if os.path.exists(path):
@@ -449,7 +449,7 @@
                        data = data[data.find("]") + 1:].strip()
                    data = data.split("code=")[1]
                    code_ = data[:6]
                    if code and code !=code_:
                    if code and code != code_:
                        continue
                    data = data[6:].strip()
                    if code_ not in fdatas:
@@ -501,8 +501,8 @@
# 读取系统日志
def load_huaxin_transaction_map():
    path = f"{constant.get_path_prefix()}/logs/huaxin/l2/transaction.{tool.get_now_date_str()}.log"
def load_huaxin_transaction_map(date=tool.get_now_date_str()):
    path = f"{constant.get_path_prefix()}/logs/huaxin/l2/transaction.{date}.log"
    fdatas = {}
    if os.path.exists(path):
        with open(path, 'r', encoding="utf-8") as f: