Re-initialize PIHOLE_CMD + docs

This commit is contained in:
Jokob-sk
2024-01-02 08:06:00 +11:00
parent 9e6a52ca4b
commit c8267f75fa
4 changed files with 77 additions and 2 deletions

View File

@@ -259,7 +259,8 @@ replacements = {
r'REPORT_NTFY=True': 'NTFY_RUN=\'on_notification\'',
r'REPORT_WEBHOOK=True': 'WEBHOOK_RUN=\'on_notification\'',
r'REPORT_PUSHSAFER=True': 'PUSHSAFER_RUN=\'on_notification\'',
r'REPORT_MQTT=True': 'MQTT_RUN=\'on_notification\''
r'REPORT_MQTT=True': 'MQTT_RUN=\'on_notification\'',
r'PIHOLE_CMD': 'PIHOLE_CMD_OLD'
}
def renameSettings(config_file):

View File

@@ -789,7 +789,7 @@ def handle_test(runType, db, pluginsState):
# Create fake notification
notification = Notification_obj(db)
notificationObj = notification.create(sample_json, sample_txt, sample_html, "")
notificationObj = notification.create(sample_json, "")
# Run test
pluginsState = handle_run(runType, db, pluginsState)