mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 12:11:26 +00:00
fix: typo, prometheus uses camelCase
This commit is contained in:
parent
eca1bc78ba
commit
8114d1580a
|
@ -40,7 +40,7 @@ class PrometheusQueries:
|
|||
raise Exception("Prometheus returned unexpected status")
|
||||
result = json['data']
|
||||
return PrometheusQueryResult(
|
||||
result_type=result['result_type'], result=result['result']
|
||||
result_type=result['resultType'], result=result['result']
|
||||
)
|
||||
except Exception as error:
|
||||
raise Exception("Prometheus request failed! " + str(error))
|
||||
|
|
Loading…
Reference in a new issue