From 12a2ccf1451327054170d47b900ee05ed1def2ae Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 21 Apr 2023 23:54:18 -0600 Subject: [PATCH] fix null check --- checker/synapse_grafana.py | 1 + 1 file changed, 1 insertion(+) diff --git a/checker/synapse_grafana.py b/checker/synapse_grafana.py index 0e48f6d..1ce844f 100644 --- a/checker/synapse_grafana.py +++ b/checker/synapse_grafana.py @@ -316,6 +316,7 @@ def get_waiting_for_db(api_key, interval, data_range, endpoint): for i in range(len(raw_data)): if raw_data[i] is not None: data.append(raw_data[i]) + else: null_present = True return np.round(np.average(data), 5), null_present, raw_data