mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 12:11:26 +00:00
fix: change resultType not result_type
This commit is contained in:
parent
f3f1114bc6
commit
b1d83f16f8
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue