Skip to content

Commit

Permalink
Fix wrong URL
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyang-graphics committed Mar 8, 2021
1 parent 742b0c8 commit 7c7969b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tronclass_cli/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_activity(self, activity_id):
return res.json()

def get_document(self, ref_id, preview=False):
res = self._api_call(f'https://courses.zju.edu.cn/api/uploads/reference/document/{ref_id}/url',
res = self._api_call(f'api/uploads/reference/document/{ref_id}/url',
params={'preview': str(preview).lower()})
res.raise_for_status()
url = res.json()['url']
Expand Down

0 comments on commit 7c7969b

Please sign in to comment.