From ffc4215411f20bbb080bfde3570b1ad2439a580c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 24 Apr 2022 20:35:22 +0200 Subject: [PATCH] Unify MINIMUM_SECONDS_RECHECK_TIME env var variable to 60 seconds --- changedetectionio/model/Watch.py | 2 +- changedetectionio/store.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index 8283002c..b148f584 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -2,7 +2,7 @@ import os import uuid as uuid_builder -minimum_seconds_recheck_time = int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 5)) +minimum_seconds_recheck_time = int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 60)) from changedetectionio.notification import ( default_notification_body, diff --git a/changedetectionio/store.py b/changedetectionio/store.py index 853f63fe..351f2b4c 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -158,7 +158,7 @@ class ChangeDetectionStore: def threshold_seconds(self): seconds = 0 mtable = {'seconds': 1, 'minutes': 60, 'hours': 3600, 'days': 86400, 'weeks': 86400 * 7} - minimum_seconds_recheck_time = int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 5)) + minimum_seconds_recheck_time = int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 60)) for m, n in mtable.items(): x = self.__data['settings']['requests']['time_between_check'].get(m) if x: