From 48a9efe95ecd3dccc51bfcbaab2ae15d6c346a63 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Tue, 16 Apr 2024 23:13:07 +0800 Subject: [PATCH] =?UTF-8?q?MSG=E6=95=B0=E9=87=8F=E8=B6=85=E8=BF=8710?= =?UTF-8?q?=E4=B8=AA=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/api/api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pywxdump/api/api.py b/pywxdump/api/api.py index a96dfa9..26dc3b4 100644 --- a/pywxdump/api/api.py +++ b/pywxdump/api/api.py @@ -324,20 +324,17 @@ def get_real_time_msg(): if not media_paths[0] or not msg_paths[0] or not micro_paths[0]: return ReJson(1001, body="media_paths or msg_paths is required") - media_paths = media_paths[1] # MediaMSG9.db MediaMSG10.db + media_paths = media_paths[1] media_paths.sort(key=lambda x: int(re.findall(r"\d+", x)[-1])) msg_paths = msg_paths[1] msg_paths.sort(key=lambda x: int(re.findall(r"\d+", x)[-1])) micro_paths = micro_paths[1] micro_paths.sort(key=lambda x: int(re.findall(r"\d+", x)[-1])) # for i in media_paths: - # print(i) # merge_real_time_db(key=key, db_path=i, merge_path=save_media_path) # for i in msg_paths: - # print(i) # merge_real_time_db(key=key, db_path=i, merge_path=save_msg_path) # for i in micro_paths: - # print(i) # merge_real_time_db(key=key, db_path=i, merge_path=save_micro_path) merge_real_time_db(key=key, db_path=media_paths[-1], merge_path=save_media_path) merge_real_time_db(key=key, db_path=msg_paths[-1], merge_path=save_msg_path)