File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments