Skip to content

Commit c7a0fd4

Browse files
peekjef72amotl
authored andcommitted
fixe migration error !
1 parent a4cd94c commit c7a0fd4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

grafana_client/elements/datasource.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ def get_datasource_proxy_data(self, datasource_id
114114
115115
:return: r (dict)
116116
"""
117-
get_datasource_path = "/datasources/proxy/{}" \
118-
'/api/{}/{}?query={}'.format( datasource_id, version, query_type, expr)
117+
get_datasource_path = "/datasources/proxy/{0}" \
118+
'/api/{1}/{2}?query={3}'.format( datasource_id, version, query_type, expr)
119119
if query_type == 'query_range':
120-
get_datasource_path = get_datasource_path + '&start={}&end={}&step={}'.format(
121-
start, end, step)
120+
get_datasource_path = get_datasource_path + '&start={0}&end={1}&step={2}'.format(
121+
start, end, step)
122122
else:
123-
get_datasource_path = get_datasource_path + '&time={}'.format(time)
124-
r = self.api.GET(get_datasource_path)
123+
get_datasource_path = get_datasource_path + '&time={}'.format(time)
124+
r = self.client.GET(get_datasource_path)
125125
return r

0 commit comments

Comments
 (0)