Merge pull request #19 from itsdave-de/hotfix/17-fix-empty-response-and-improve-request-query-to-obtain-results

#17 | Comment line and change data displayed to match oitc one
This commit is contained in:
Jordi Albert 2022-07-20 12:34:19 +02:00 committed by GitHub
commit 0b5157c634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'],