fix build exe error

This commit is contained in:
xaoyaoo committed 2024-08-17 13:51:44 +08:00
1 parent 33da8c4b78
commit 0c727dc34f
12 files changed
+56 -43

No files matched your search

+3 -3
View File
@@ -22,7 +22,6 @@ from .wx_core import merge_db, decrypt_merge, merge_real_time_db, all_merge_real
from .db import DBHandler, MsgHandler, MicroHandler, MediaHandler, OpenIMContactHandler, FavoriteHandler, \
PublicMsgHandler
from .api import start_server, app
from .analyzer import DBPool
# PYWXDUMP_ROOT_PATH = os.path.dirname(__file__)
# db_init = DBPool("DBPOOL_INIT")
@@ -30,5 +29,6 @@ from .analyzer import DBPool
__all__ = ["BiasAddr", "get_wx_info", "get_wx_db", "batch_decrypt", "decrypt", "get_core_db",
"merge_db", "decrypt_merge", "merge_real_time_db", "all_merge_real_time_db",
"MsgHandler", "MicroHandler", "MediaHandler", "OpenIMContactHandler", "FavoriteHandler", "PublicMsgHandler",
"DBHandler", "start_server", "WX_OFFS", "WX_OFFS_PATH", "__version__", "app"]
"DBHandler", "MsgHandler", "MicroHandler", "MediaHandler", "OpenIMContactHandler", "FavoriteHandler",
"PublicMsgHandler",
"start_server", "WX_OFFS", "WX_OFFS_PATH", "__version__", "app"]
File renamed without changes.
@@ -8,7 +8,7 @@
import csv
import json
import os
from ..__init__ import DBHandler
from pywxdump.db import DBHandler
def export_csv(wxid, outpath, db_config, my_wxid="我", page_size=5000):
@@ -7,7 +7,7 @@
# -------------------------------------------------------------------------------
import json
import os
from ..__init__ import DBHandler
from pywxdump.db import DBHandler
def export_html(wxid, outpath, db_config, my_wxid="我"):
@@ -7,7 +7,7 @@
# -------------------------------------------------------------------------------
import json
import os
from ..__init__ import DBHandler
from pywxdump.db import DBHandler
def export_json(wxid, outpath, db_config, my_wxid="我", indent=4):
+4 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------
# Name: chat_api.py
# Name: remote_server.py
# Description:
# Author: xaoyaoo
# Date: 2024/01/02
@@ -18,9 +18,10 @@ from starlette.responses import StreamingResponse, FileResponse
import pywxdump
from pywxdump import decrypt_merge,get_core_db
from pywxdump.db import DBHandler, download_file, dat2img
from pywxdump.db.export import export_csv, export_json, export_html
from pywxdump.db import DBHandler
from pywxdump.db.utils import download_file, dat2img
from .export import export_csv, export_json, export_html
from .rjson import ReJson, RqJson
from .utils import error9999, gc, asyncError9999
+6 -4
View File
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------
# Name: __init__.py.py
# Description:
# Name: __init__.py
# Description: db
# Author: xaoyaoo
# Date: 2024/04/15
# -------------------------------------------------------------------------------
# import pandas as pd
from .utils import download_file, dat2img
from .dbFavorite import FavoriteHandler
@@ -82,3 +80,7 @@ class DBHandler(MicroHandler, MediaHandler, OpenIMContactHandler, PublicMsgHandl
count = {k: chat_count.get(k, 0) + chat_count1.get(k, 0) for k in
list(set(list(chat_count.keys()) + list(chat_count1.keys())))}
return count
__all__ = ["DBHandler", "FavoriteHandler", "MsgHandler", "MicroHandler", "MediaHandler",
"OpenIMContactHandler", "PublicMsgHandler", "OpenIMMediaHandler", "SnsHandler"]
+2 -2
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------
# Name: __init__.py.py
# Description:
# Description: db.utils
# Author: xaoyaoo
# Date: 2024/07/23
# -------------------------------------------------------------------------------
@@ -10,4 +10,4 @@ from .common_utils import timestamp2str, xml2dict, silk2audio, bytes2str, get_md
type_converter, match_BytesExtra, db_error, download_file, dat2img
__all__ = ["db_loger", "timestamp2str", "xml2dict", "silk2audio", "bytes2str", "get_md5", "name2typeid", "typeid2name",
"type_converter", "match_BytesExtra", "db_error", "download_file", "dat2img"]
"type_converter", "match_BytesExtra", "db_error", "download_file", "dat2img"]