From dee0c735e6cec9185ab84247ba0c142388d05a96 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 4 Nov 2022 22:29:09 +0100 Subject: [PATCH] Add more validation --- changedetectionio/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index 97b4853d..d1244b3e 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -131,6 +131,10 @@ class TimeScheduleCheckLimitForm(Form): self.from_time.errors.append('From time must be LESS than the until/end time') result = False + if len(self.data.get('day_of_week', [])) == 0: + self.day_of_week.errors.append('No day selected') + result = False + return result # Separated by key:value