FIX multiple exclusions not working
Some checks failed
Build documentation / build (push) Failing after 4s
Install and run tests / test (3.11) (push) Failing after 5s
Install and run tests / test (3.12) (push) Failing after 3s
Install and run tests / test (3.13) (push) Failing after 4s
Install and run tests / test (3.8) (push) Failing after 3s
Install and run tests / test (3.9) (push) Failing after 4s
Build documentation / deploy (push) Has been skipped
Install and run tests / test (3.10) (push) Successful in 2m5s

This commit is contained in:
boyska 2025-03-01 14:46:14 +01:00
parent 27d05a207e
commit e0b70be291

View file

@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
class BaseForm(FlaskForm):
def validate_exclude(self, field):
for line in field.data.split("\n"):
if line.strip() and multi_exclusion(line) is None:
if line.strip() and multi_exclusion(line.strip()) is None:
raise ValidationError("formato di exclude non valido: %s" % line)
def populate_from_timespec(self, timespec):