From 643a45b5e26ca5ebb04aeb38d96d7bef4def377a Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 14 May 2024 13:07:09 +0200 Subject: [PATCH] Tidy up logic to be more readable --- changedetectionio/flask_app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index c32ae63b..0722688b 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -1717,9 +1717,7 @@ def ticker_thread_check_time_launch_checks(): continue # If they supplied an individual entry minutes to threshold. - watch_threshold_seconds = watch.threshold_seconds() - threshold = watch_threshold_seconds if watch_threshold_seconds > 0 else recheck_time_system_seconds - threshold = recheck_time_system_seconds if watch.get('time_between_check_use_default') else threshold + threshold = recheck_time_system_seconds if watch.get('time_between_check_use_default') else watch.threshold_seconds() # #580 - Jitter plus/minus amount of time to make the check seem more random to the server jitter = datastore.data['settings']['requests'].get('jitter_seconds', 0)