From 9148a31143cf4f67d312136489171e7d9aeed836 Mon Sep 17 00:00:00 2001 From: Aidaho Date: Wed, 21 Aug 2024 09:25:56 +0300 Subject: [PATCH] v8.0: Fix section value in admin settings and correct alert message Removed the unnecessary section reassignment in admin_settings.js to ensure the correct section value is used. Also, corrected a minor formatting issue in the alert message within alerting.py for better readability. --- app/modules/tools/alerting.py | 2 +- app/static/js/admin/admin_settings.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/modules/tools/alerting.py b/app/modules/tools/alerting.py index 83cfc182..9753a6c3 100644 --- a/app/modules/tools/alerting.py +++ b/app/modules/tools/alerting.py @@ -186,7 +186,7 @@ def telegram_send_mess(mess, level, **kwargs): channel_name = telegram.chanel_name if token_bot == '' or channel_name == '': - mess = " Can't send message. Add Telegram channel before use alerting at this servers group" + mess = "Can't send message. Add Telegram channel before use alerting at this servers group" roxywi_common.logging('Roxy-WI server', mess, roxywi=1) if proxy is not None and proxy != '' and proxy != 'None': diff --git a/app/static/js/admin/admin_settings.js b/app/static/js/admin/admin_settings.js index 4b60b8d9..9cf5c732 100644 --- a/app/static/js/admin/admin_settings.js +++ b/app/static/js/admin/admin_settings.js @@ -78,9 +78,6 @@ function updateSettings(param, section, val) { 'param': param, 'value': val } - if (section === 'smon') { - section = 'rmon'; - } $.ajax({ url: "/admin/settings/" + section, data: JSON.stringify(json_data),