#17 | Comment line and change data displayed to match oitc one

This commit is contained in:
Jordi Albert 2022-07-20 12:32:28 +02:00
parent 685fd6178e
commit c7d5d61676
2 changed files with 6 additions and 6 deletions

View File

@ -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
# ---------------

View File

@ -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'],