diff options
author | Kyomotoi <1172294279@qq.com> | 2020-11-08 01:09:59 +0800 |
---|---|---|
committer | Kyomotoi <1172294279@qq.com> | 2020-11-08 01:09:59 +0800 |
commit | 50e9fbd8b7ce4cb72ffaca44aff1789a318cd5db (patch) | |
tree | 99735b6d37f447d401dfdebd764034e970c9e82f /utils/utils_rule/__init__.py | |
parent | 4ce5a0c4d00e1ba2568b97f0503ef12d7febb23d (diff) | |
download | ATRI-50e9fbd8b7ce4cb72ffaca44aff1789a318cd5db.tar.gz ATRI-50e9fbd8b7ce4cb72ffaca44aff1789a318cd5db.tar.bz2 ATRI-50e9fbd8b7ce4cb72ffaca44aff1789a318cd5db.zip |
[Update]
Diffstat (limited to 'utils/utils_rule/__init__.py')
-rw-r--r-- | utils/utils_rule/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/utils_rule/__init__.py b/utils/utils_rule/__init__.py index 333fb5d..c1d0757 100644 --- a/utils/utils_rule/__init__.py +++ b/utils/utils_rule/__init__.py @@ -106,6 +106,7 @@ def check_switch(func_name: str) -> Rule: data_switch_all["pixiv-author-search"] = "True" data_switch_all["pixiv-rank"] = "True" data_switch_all["one-key-adult"] = "True" + data_switch_all["genshin-search"] = "True" file = open(file_switch_all, 'w') file.write(json.dumps(data_switch_all)) @@ -118,6 +119,8 @@ def check_switch(func_name: str) -> Rule: try: os.mkdir( Path('.') / 'ATRI' / 'data' / 'data_Group' / f'{group}') + except: + pass data_switch_alone["anime-setu"] = "True" data_switch_alone["anime-pic-search"] = "True" @@ -127,6 +130,7 @@ def check_switch(func_name: str) -> Rule: data_switch_alone["pixiv-author-search"] = "True" data_switch_alone["pixiv-rank"] = "True" data_switch_alone["one-key-adult"] = "True" + data_switch_alone["genshin-search"] = "True" file = open(file_switch_alone, 'w') file.write(json.dumps(data_switch_alone)) |