mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-17 23:13:03 +08:00
fix(AutoLib): correct config key from 'run/mode' to 'mode/run_mode'
Update dictionary key retrieval to use the correct key 'mode/run_mode' instead of the outdated 'run/mode'. This aligns the code with the recent configuration changes.
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ class AutoLib(MsgBase):
|
||||
"""
|
||||
Here, we collect the run mode from the config file.
|
||||
"""
|
||||
run_mode = self.__system_config_reader.get("run/mode", 1)
|
||||
run_mode = self.__system_config_reader.get("mode/run_mode", 0)
|
||||
run_mode = {
|
||||
"auto_reserve": run_mode&0x1,
|
||||
"auto_checkin": run_mode&0x2,
|
||||
|
||||
Reference in New Issue
Block a user