WEBHOOK conversion + cleanup work🎣

This commit is contained in:
Jokob-sk
2023-10-22 09:29:25 +11:00
parent fdd199935a
commit 55e398dd10
17 changed files with 653 additions and 128 deletions

View File

@@ -26,8 +26,7 @@ from logger import logResult, mylog, print_log
from publishers.webhook import (check_config as webhook_check_config,
send as send_webhook)
from publishers.pushsafer import (check_config as pushsafer_check_config,
send as send_pushsafer)
#===============================================================================
@@ -258,21 +257,6 @@ def get_notifications (db):
return noti_obj(final_json, final_text, final_html)
# if conf.REPORT_WEBHOOK and check_config('webhook'):
# updateState("Send: Webhook")
# mylog('minimal', ['[Notification] Sending report by Webhook'])
# send_webhook (msg)
# else :
# mylog('verbose', ['[Notification] Skip webhook'])
# if conf.REPORT_PUSHSAFER and check_config('pushsafer'):
# updateState("Send: PUSHSAFER")
# mylog('minimal', ['[Notification] Sending report by PUSHSAFER'])
# send_pushsafer (msg)
# else :
# mylog('verbose', ['[Notification] Skip PUSHSAFER'])
#-------------------------------------------------------------------------------
# Replacing table headers