From 6f18eefc25009be65f8b2364f57aedae3ea34251 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 25 Jul 2024 00:58:38 +0400 Subject: [PATCH] fix: FIX fiIFIxiIXIFiIXi --- selfprivacy_api/utils/prometheus.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/selfprivacy_api/utils/prometheus.py b/selfprivacy_api/utils/prometheus.py index 41dd0d9..5547497 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -33,13 +33,11 @@ class PrometheusQueries: "step": step, }, ) - print(response) if response.status_code != 200: raise Exception("Prometheus returned unexpected HTTP status code") json = response.json() - print(json) return PrometheusQueryResult( - result_type=json["resultType"], result=json["result"] + result_type=json["data"]["resultType"], result=json["data"]["result"] ) except Exception as error: raise Exception("Prometheus request failed! " + str(error))