From 1b736b372676ab7a54134a15b19d3728cf532668 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 13 May 2021 22:33:33 +1000 Subject: [PATCH] Re #58 - reduce to 1 minute (a small rewrite is required to change the backend to store in 'seconds' instead of minutes) --- Dockerfile | 5 +++-- backend/__init__.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4e84694..1f6bf06c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ FROM python:3.8-slim COPY requirements.txt /tmp/requirements.txt -RUN apt-get update && apt-get install -y curl libssl-dev libffi-dev gcc libc-dev libxslt-dev zlib1g-dev g++ --no-install-recommends && rm -rf /var/lib/apt/lists/* /var/cache/apt/* +RUN apt-get update && apt-get install -y libssl-dev libffi-dev gcc libc-dev libxslt-dev zlib1g-dev g++ --no-install-recommends && rm -rf /var/lib/apt/lists/* /var/cache/apt/* RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r /tmp/requirements.txt # More bloat, curl above is needed because the rust compiler is needed -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +# apprise requires this cryptography lib +#RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN [ ! -d "/app" ] && mkdir /app diff --git a/backend/__init__.py b/backend/__init__.py index 955163f9..a81d324d 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -459,12 +459,12 @@ def changedetection_app(conig=None, datastore_o=None): messages.append({'class': 'error', 'message': "Invalid value given, use an integer."}) else: - if minutes >= 5: + if minutes >= 1: datastore.data['settings']['requests']['minutes_between_check'] = minutes datastore.needs_write = True else: messages.append( - {'class': 'error', 'message': "Must be atleast 5 minutes."}) + {'class': 'error', 'message': "Must be atleast 1 minute."}) # 'validators' package doesnt work because its often a non-stanadard protocol. :( datastore.data['settings']['application']['notification_urls'] = []