🤬
  • ■ ■ ■ ■ ■ ■
    changedetectionio/forms.py
    skipped 313 lines
    314 314   
    315 315  # Common to a single watch and the global settings
    316 316  class commonSettingsForm(Form):
    317  - 
    318 317   notification_urls = StringListField('Notification URL list', validators=[validators.Optional(), ValidateAppRiseServers()])
    319  - notification_title = StringField('Notification title', default=default_notification_title, validators=[validators.Optional(), ValidateTokensList()])
    320  - notification_body = TextAreaField('Notification body', default=default_notification_body, validators=[validators.Optional(), ValidateTokensList()])
    321  - notification_format = SelectField('Notification format', choices=valid_notification_formats.keys(), default=default_notification_format)
     318 + notification_title = StringField('Notification title', validators=[validators.Optional(), ValidateTokensList()])
     319 + notification_body = TextAreaField('Notification body', validators=[validators.Optional(), ValidateTokensList()])
     320 + notification_format = SelectField('Notification format', choices=valid_notification_formats.keys())
    322 321   fetch_backend = RadioField(u'Fetch method', choices=content_fetcher.available_fetchers(), validators=[ValidateContentFetcherIsReady()])
    323 322   extract_title_as_title = BooleanField('Extract <title> from document and use as watch title', default=False)
    324  - webdriver_delay = IntegerField('Wait seconds before extracting text', validators=[validators.Optional(), validators.NumberRange(min=1, message="Should contain one or more seconds")] )
     323 + webdriver_delay = IntegerField('Wait seconds before extracting text', validators=[validators.Optional(), validators.NumberRange(min=1,
     324 + message="Should contain one or more seconds")])
    325 325   
    326 326  class watchForm(commonSettingsForm):
    327 327   
    skipped 83 lines
Please wait...
Page is in error, reload to recover