From d0f33825a0a6c6fb243bb4a1b4d30660bf821366 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 24 四月 2024 13:56:18 +0800
Subject: [PATCH] 日志调整

---
 log_module/log_export.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/log_module/log_export.py b/log_module/log_export.py
index cda2700..bd864df 100644
--- a/log_module/log_export.py
+++ b/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()

--
Gitblit v1.8.0