mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
Added / on api path to prevent wrong url param
This commit is contained in:
parent
f89842801f
commit
9b38f1e81c
@ -46,7 +46,7 @@ class Prometheus(BaseQueryRunner):
|
||||
error = None
|
||||
query = query.strip()
|
||||
|
||||
local_query = 'api/v1/query'
|
||||
local_query = '/api/v1/query'
|
||||
url = base_url + local_query
|
||||
payload = {'query': query}
|
||||
response = requests.get(url, params=payload)
|
||||
|
Loading…
Reference in New Issue
Block a user