From e4e1d27b4ff78e00b1f119862f322eebbabe655d Mon Sep 17 00:00:00 2001 From: guga kakhadze Date: Thu, 26 Jun 2025 21:44:18 +0400 Subject: [PATCH] header stil showed null and this time its fixed for good lol --- .../views/Header/Header/view.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Header/Header/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Header/Header/view.json index 56ca101..dd7a864 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Header/Header/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Header/Header/view.json @@ -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" } ],