header stil showed null and this time its fixed for good lol
This commit is contained in:
parent
e5acbda785
commit
e4e1d27b4f
@ -819,11 +819,12 @@
|
||||
"enabled": true,
|
||||
"rate": "3"
|
||||
},
|
||||
"queryPath": "GetActiveAlarmsByLocationAndPriority"
|
||||
"queryPath": "GetActiveAlarmsByLocationAndPriority",
|
||||
"returnFormat": "json"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\tif value is None or not hasattr(system.dataset, \"toPyDataSet\"):\n\t\treturn \n\t\t\n\trows \u003d system.dataset.toPyDataSet(value)\n\t\n\ttotal \u003d sum(row[\"Count\"] for row in rows)\n\t\n\treturn total",
|
||||
"code": "\ttotal \u003d sum(row[\"Count\"] for row in value if \"Count\" in row and row[\"Count\"] is not None)\n\treturn total",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user