openwrt_log_analyzer: fix

This commit is contained in:
Evgeny Zinoviev 2023-05-18 16:47:35 +03:00
parent 5d739c3e9d
commit 1b55bec5f8

View File

@ -55,7 +55,7 @@ def main(mac: str,
if __name__ == '__main__': if __name__ == '__main__':
config.load('openwrt_log_analyzer') config.load('openwrt_log_analyzer')
for ap in config['aps']: for ap in config['openwrt_log_analyzer']['aps']:
state_file = config['simple_state']['file'] state_file = config['simple_state']['file']
state_file = state_file.replace('.txt', f'-{ap}.txt') state_file = state_file.replace('.txt', f'-{ap}.txt')