mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-04 17:21:23 -07:00
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -20,6 +20,9 @@ from logger import mylog
|
|||||||
from utils.datetime_utils import timeNowDB
|
from utils.datetime_utils import timeNowDB
|
||||||
|
|
||||||
|
|
||||||
|
NOTIFICATION_API_FILE = apiPath + 'user_notifications.json'
|
||||||
|
|
||||||
|
|
||||||
# Show Frontend User Notification
|
# Show Frontend User Notification
|
||||||
def write_notification(content, level="alert", timestamp=None):
|
def write_notification(content, level="alert", timestamp=None):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ INSTALL_PATH = os.getenv("NETALERTX_APP", "/app")
|
|||||||
sys.path.extend([f"{INSTALL_PATH}/server"])
|
sys.path.extend([f"{INSTALL_PATH}/server"])
|
||||||
|
|
||||||
from helper import (
|
from helper import (
|
||||||
get_timezone_offset,
|
|
||||||
get_setting_value,
|
get_setting_value,
|
||||||
)
|
)
|
||||||
from logger import mylog
|
from logger import mylog
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ from helper import (
|
|||||||
removeDuplicateNewLines,
|
removeDuplicateNewLines,
|
||||||
write_file,
|
write_file,
|
||||||
get_setting_value,
|
get_setting_value,
|
||||||
get_timezone_offset,
|
|
||||||
)
|
)
|
||||||
from messaging.in_app import write_notification
|
from messaging.in_app import write_notification
|
||||||
from utils.datetime_utils import timeNowDB, get_timezone_offset
|
from utils.datetime_utils import timeNowDB, get_timezone_offset
|
||||||
|
|||||||
Reference in New Issue
Block a user