From fc5c85e81adbb1d42d16fcb1d7c8115aec034646 Mon Sep 17 00:00:00 2001 From: nhnn Date: Wed, 24 Jul 2024 06:01:41 +0300 Subject: [PATCH] fix: typo in PrometheusQueries._send_query --- selfprivacy_api/utils/prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/utils/prometheus.py b/selfprivacy_api/utils/prometheus.py index 3e25a2d..2248170 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -37,7 +37,7 @@ class PrometheusQueries: raise Exception("Prometheus returned unexpected HTTP status code") json = response.json() return PrometheusQueryResult( - result_type=json["result_type"], result=json["result"] + result_type=json["resultType"], result=json["result"] ) except Exception as error: raise Exception("Prometheus request failed! " + str(error))