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

@@ -306,8 +306,8 @@ class ValidateAppRiseServers(object):
def __call__(self, form, field):
import apprise
from .apprise_plugin.assets import apprise_asset
from .apprise_plugin.custom_handlers import apprise_http_custom_handler # noqa: F401
from .notification.apprise_plugin.assets import apprise_asset
from .notification.apprise_plugin.custom_handlers import apprise_http_custom_handler # noqa: F401
apobj = apprise.Apprise(asset=apprise_asset)