Compare commits

..

2 Commits

Author SHA1 Message Date
dgtlmoon
b8a7f66655 cleanup 2023-06-27 18:08:48 +02:00
dgtlmoon
82786225b2 Refactor 2023-06-27 18:04:20 +02:00
3 changed files with 2 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ from flask_paginate import Pagination, get_page_parameter
from changedetectionio import html_tools
from changedetectionio.api import api_v1
__version__ = '0.43.1'
__version__ = '0.43'
datastore = None

View File

@@ -92,12 +92,6 @@ def process_notification(n_object, datastore):
n_object.get('notification_format', default_notification_format),
valid_notification_formats[default_notification_format],
)
# If we arrived with 'System default' then look it up
if n_format == default_notification_format_for_watch and datastore.data['settings']['application'].get('notification_format') != default_notification_format_for_watch:
# Initially text or whatever
n_format = datastore.data['settings']['application'].get('notification_format', valid_notification_formats[default_notification_format])
# https://github.com/caronc/apprise/wiki/Development_LogCapture
# Anything higher than or equal to WARNING (which covers things like Connection errors)

View File

@@ -71,7 +71,7 @@ class update_worker(threading.Thread):
from changedetectionio.notification import (
default_notification_format_for_watch,
default_notification_body,
default_notification_title
default_notification_title,
)