Notification rework v0.5

This commit is contained in:
Jokob-sk
2023-10-08 11:15:10 +11:00
parent d4b590a9fc
commit 79c47015f4
7 changed files with 111 additions and 81 deletions

View File

@@ -317,26 +317,26 @@ def get_notifications (db):
#-------------------------------------------------------------------------------
def check_config(service):
# #-------------------------------------------------------------------------------
# def check_config(service):
if service == 'email':
return email_check_config()
# if service == 'email':
# return email_check_config()
if service == 'apprise':
return apprise_check_config()
# if service == 'apprise':
# return apprise_check_config()
if service == 'webhook':
return webhook_check_config()
# if service == 'webhook':
# return webhook_check_config()
if service == 'ntfy':
return ntfy_check_config ()
# if service == 'ntfy':
# return ntfy_check_config ()
if service == 'pushsafer':
return pushsafer_check_config()
# if service == 'pushsafer':
# return pushsafer_check_config()
if service == 'mqtt':
return mqtt_check_config()
# if service == 'mqtt':
# return mqtt_check_config()
#-------------------------------------------------------------------------------
# Replacing table headers