From c7d5d6167613e5bac274a342cb6ee41055302b84 Mon Sep 17 00:00:00 2001 From: Jordi Albert <63541019+jarg1023@users.noreply.github.com> Date: Wed, 20 Jul 2022 12:32:28 +0200 Subject: [PATCH] #17 | Comment line and change data displayed to match oitc one --- msp/hooks.py | 10 +++++----- msp/msp/doctype/it_object/it_object.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/msp/hooks.py b/msp/hooks.py index e24292c..5df4a86 100644 --- a/msp/hooks.py +++ b/msp/hooks.py @@ -87,11 +87,11 @@ jenv = { # --------------- # Hook on document methods and events -doc_events = { - "Customer": { - "on_update": "msp.msp.customer_quick_entry.custom_customer_info" - } -} +# doc_events = { +# "Customer": { +# "on_update": "msp.msp.customer_quick_entry.custom_customer_info" +# } +# } # Scheduled Tasks # --------------- diff --git a/msp/msp/doctype/it_object/it_object.py b/msp/msp/doctype/it_object/it_object.py index bc2d35b..7312138 100644 --- a/msp/msp/doctype/it_object/it_object.py +++ b/msp/msp/doctype/it_object/it_object.py @@ -30,7 +30,7 @@ class ITObject(Document): 'currentState': host_data['Hoststatus']['humanState'], 'lastCheck': host_data['Hoststatus']['lastCheckInWords'], 'nextCheck': host_data['Hoststatus']['nextCheckInWords'], - 'currentStateSince': host_data['Hoststatus']['lastHardStateChangeInWords'] + 'currentStateSince': host_data['Hoststatus']['last_state_change_in_words'] }, 'servicesStatus': { 'totalServices': host_data['ServicestatusSummary']['total'],