We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74af83d commit 82367cbCopy full SHA for 82367cb
quickchart/__init__.py
@@ -36,7 +36,7 @@ def get_url(self):
36
params['key'] = self.key
37
return 'https://quickchart.io/chart?%s' % urlencode(params)
38
39
- def _post(self, path):
+ def _post(self, url):
40
try:
41
import requests
42
except:
@@ -52,7 +52,7 @@ def _post(self, path):
52
}
53
if self.key:
54
postdata['key'] = self.key
55
- resp = requests.post('https://quickchart.io/chart', json=postdata)
+ resp = requests.post(url, json=postdata)
56
if resp.status_code != 200:
57
raise RuntimeError('Invalid response code from chart creation endpoint')
58
return resp
0 commit comments