From dad102ce1757931b71fe6ea5e96129bd6e83c9bb Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Mon, 15 Mar 2021 15:45:11 +0100 Subject: [PATCH] add config argument to update_id_patterns() --- stechuhr_client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stechuhr_client/client.py b/stechuhr_client/client.py index 82ac2bf..2dc6993 100644 --- a/stechuhr_client/client.py +++ b/stechuhr_client/client.py @@ -320,7 +320,7 @@ def read_key_input(input_queue, config, logger): time.sleep(0.01) -def update_id_patterns() -> 'Config': +def update_id_patterns(config) -> 'Config': if config["server"]["port"] == 80: protocol = "http" else: @@ -376,7 +376,7 @@ def main(): if last_pattern_update is None or time.time() - last_pattern_update > config["server"]["update_frequency"]: last_pattern_update = time.time() - update_id_patterns() + update_id_patterns(config) time.sleep(0.01) -- GitLab