MCPcopy
hub / github.com/blackboxo/CleanMyWechat / make_default_user_config

Function make_default_user_config

main.py:266–281  ·  view source on GitHub ↗
(wechat_id, data_dir)

Source from the content-addressed store, hash-verified

264
265
266def make_default_user_config(wechat_id, data_dir):
267 user = {
268 "wechat_id": wechat_id,
269 "data_dir": data_dir,
270 "client_type": detect_client_type(data_dir),
271 "clean_days": "365",
272 "is_clean": True,
273 "clean_pic_cache": True,
274 "clean_file": False,
275 "clean_pic": True,
276 "clean_video": True,
277 "is_timer": True,
278 "timer": "0h"
279 }
280 ensure_config_defaults({"users": [user], "data_dir": [data_dir], "global": {}})
281 return user
282
283
284def get_file_type(file_path, default_category="other"):

Callers 4

merge_detected_accountsFunction · 0.85
open_fileMethod · 0.85
create_configMethod · 0.85

Calls 2

detect_client_typeFunction · 0.85
ensure_config_defaultsFunction · 0.85

Tested by

no test coverage detected