From 74cf72c9cd19179cb4a6e3772f2e870a79672b46 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 22 Jun 2021 00:25:34 +1000 Subject: [PATCH] Time between rechecks is always stored as minutes --- backend/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/__init__.py b/backend/__init__.py index ab3e9926..cc111481 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -439,7 +439,7 @@ def changedetection_app(config=None, datastore_o=None): form = forms.globalSettingsForm(request.form) if request.method == 'GET': - form.minutes_between_check.data = int(datastore.data['settings']['requests']['minutes_between_check'] / 60) + form.minutes_between_check.data = int(datastore.data['settings']['requests']['minutes_between_check']) form.notification_urls.data = datastore.data['settings']['application']['notification_urls'] # Password unset is a GET @@ -452,7 +452,7 @@ def changedetection_app(config=None, datastore_o=None): if request.method == 'POST' and form.validate(): datastore.data['settings']['application']['notification_urls'] = form.notification_urls.data - datastore.data['settings']['requests']['minutes_between_check'] = form.minutes_between_check.data * 60 + datastore.data['settings']['requests']['minutes_between_check'] = form.minutes_between_check.data if len(form.notification_urls.data): import apprise