Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Aug 7, 2024
1 parent 5630ca4 commit 7f97882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pywxdump/api/local_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def init_nokey():
set_conf(g.caf, my_wxid, "wx_path", wx_path)
set_conf(g.caf, my_wxid, "key", key)
set_conf(g.caf, my_wxid, "my_wxid", my_wxid)
set_conf(g.caf, "test", "last", my_wxid)
set_conf(g.caf, g.at, "last", my_wxid)
rdata = {
"merge_path": merge_path,
"wx_path": wx_path,
Expand Down
2 changes: 1 addition & 1 deletion pywxdump/wx_core/wx_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def get_wx_db(msg_dir: str = None,
db_types = None

wxid_dirs = {} # wx用户目录
if "All Users" in os.listdir(msg_dir) or "Applet" in os.listdir(msg_dir) or "WMPF" in os.listdir(msg_dir):
if wxids or "All Users" in os.listdir(msg_dir) or "Applet" in os.listdir(msg_dir) or "WMPF" in os.listdir(msg_dir):
for sub_dir in os.listdir(msg_dir):
if os.path.isdir(os.path.join(msg_dir, sub_dir)) and sub_dir not in ["All Users", "Applet", "WMPF"]:
wxid_dirs[os.path.basename(sub_dir)] = os.path.join(msg_dir, sub_dir)
Expand Down

0 comments on commit 7f97882

Please sign in to comment.