summaryrefslogtreecommitdiff
path: root/searx/openmetrics.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/openmetrics.py')
-rw-r--r--searx/openmetrics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/openmetrics.py b/searx/openmetrics.py
index 5232e05ca..2cc89839b 100644
--- a/searx/openmetrics.py
+++ b/searx/openmetrics.py
@@ -26,7 +26,7 @@ class OpenMetricsFamily: # pylint: disable=too-few-public-methods
"""
for i, data_info_dict in enumerate(self.data_info):
- if not data_info_dict and data_info_dict != 0:
+ if not data_info_dict or not self.data[i]:
continue
info_representation = ','.join([f"{key}=\"{value}\"" for (key, value) in data_info_dict.items()])