Administrator
2024-04-24 d0f33825a0a6c6fb243bb4a1b4d30660bf821366
log_module/log_export.py
@@ -149,7 +149,7 @@
    pos_list = []
    with open("{}/logs/gp/l2/l2_trade.{}.log".format(constant.get_path_prefix(), date), mode='r',
              encoding="utf-8") as f:
        latest_single=[None, None]
        latest_single = [None, None]
        while True:
            line = f.readline()
            if not line:
@@ -178,7 +178,7 @@
                for p in latest_single:
                    if p:
                        pos_list.append(p)
                latest_single = [None,None]
                latest_single = [None, None]
            elif line.find("触发撤单,撤单位置:") > 0:
                str_ = line.split("触发撤单,撤单位置:")[1].strip()
                index = str_[0:str_.find(" ")].strip()