diff options
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/modules/funcControl/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |