File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1212from hash import hash
1313
1414default_config = {
15+ "version" : 1 ,
1516 "mirror" : "https://mower.zhaozuohong.vip" ,
1617 "ignore" : [
1718 "*.yml" ,
1819 "*.json" ,
19- "tmp/*" ,
20+ "tmp/**/* " ,
2021 "log/*" ,
2122 "screenshot/**/*" ,
2223 "adb-buildin/*" ,
2324 ],
2425 "install_dir" : "" ,
25- "pool_limit" : 32 ,
26- "dir_name" : "mower" ,
26+ "pool_limit" : 16 ,
2727}
2828
2929conf_dir_path = pathlib .Path (platformdirs .user_config_dir ("mower_updater" ))
3232if conf_path .exists ():
3333 with conf_path .open ("r" ) as f :
3434 conf = json .load (f )
35- default_config .update (conf )
35+ if "version" in conf and conf ["version" ] == default_config ["version" ]:
36+ default_config .update (conf )
3637conf = default_config
3738
3839
@@ -105,7 +106,7 @@ def fetch_version_details(mirror, versions):
105106 try :
106107 r = s .get (url )
107108 pub_time = r .json ()["time" ]
108- except Exception as e :
109+ except Exception :
109110 continue
110111 result .append (
111112 {
You can’t perform that action at this time.
0 commit comments