From 681b8c7c8841c8c889f77bf54d1cf1ce9914c016 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sat, 12 Sep 2020 16:46:26 +0800 Subject: [Fix] --- ATRI/modules/funcControl/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ATRI') diff --git a/ATRI/modules/funcControl/__init__.py b/ATRI/modules/funcControl/__init__.py index c111b61..089e673 100644 --- a/ATRI/modules/funcControl/__init__.py +++ b/ATRI/modules/funcControl/__init__.py @@ -7,8 +7,8 @@ def checkSwitch(funcName: str, g: int): file = Path('.') / 'ATRI' / 'modules' / 'funcControl' / 'ALLswitch.json' with open(file, 'r') as f: data = json.load(f) - if data[funcName] == "on": - return True + if data[funcName] == "off": + return False else: file = Path('.') / 'ATRI' / 'data' / 'groupData' / f'{g}' / 'switch.json' with open(file, 'r') as f: -- cgit v1.2.3