8000 Include browser_download_url attribute with asset · pythonthings/github3.py@717fe78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 717fe78

Browse files
committed
Include browser_download_url attribute with asset
1 parent 5477506 commit 717fe78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github3/repos/release.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def _update_attributes(self, asset):
195195
#: URL to download the asset.
196196
#: Request headers must include ``Accept: application/octet-stream``.
197197
self.download_url = self._api
198+
# User friendly download URL
199+
self.browser_download_url = asset.get('browser_download_url')
198200
#: GitHub id of the asset
199201
self.id = asset.get('id')
200202
#: Short description of the asset

0 commit comments

Comments
 (0)
0