App memory - Apprise import only when needed - saves ~50Mb RAM if you dont have any notifications enabled (#3106)

This commit is contained in:
dgtlmoon
2025-04-11 10:37:09 +02:00
committed by GitHub
parent 5f43d988a3
commit 96dc49e229
13 changed files with 61 additions and 51 deletions

View File

@@ -1,5 +1,7 @@
# Responsible for building the storage dict into a set of rules ("JSON Schema") acceptable via the API
# Probably other ways to solve this when the backend switches to some ORM
from changedetectionio.notification import valid_notification_formats
def build_time_between_check_json_schema():
# Setup time between check schema
@@ -98,8 +100,6 @@ def build_watch_json_schema(d):
}
}
from changedetectionio.notification import valid_notification_formats
schema['properties']['notification_format'] = {'type': 'string',
'enum': list(valid_notification_formats.keys())
}