Skip to content

Commit 1a4994e

Browse files
committed
Bugfix url
1 parent 849a7c2 commit 1a4994e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

django_auto_static_libs/libraries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
'destination': "auto",
5252
}
5353
fontawesome = {
54-
'provider': GithubProvider("FortAwesome/Font-Awesome",file="fontawesome-free-{response_json[tag_name]}-web.zip"),
54+
'provider': GithubProvider("FortAwesome/Font-Awesome",file="releases/download/{response_json[tag_name]}/fontawesome-free-{response_json[tag_name]}-web.zip"),
5555
'suffix_ignore': [],
5656
'files_include': r"fontawesome-[^/]*/(.*)",
5757
'destination': "auto",

django_auto_static_libs/providers/GithubProvider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
import os, re, pathlib, errno
44

55
class GithubProvider(BaseProvider):
6-
def __init__(self, repo,file="{response_json[tag_name]}.zip"):
6+
def __init__(self, repo,file="archive/refs/tags/{response_json[tag_name]}.zip"):
77
self.repo = repo
88
self.file=file
99
def download(self):
1010
response = requests.get("https://api.github.com/repos/%s/releases/latest" % (self.repo),
1111
allow_redirects=True)
1212
#to use in format of string
1313
response_json=response.json()
14-
r = requests.get("https://github.com/%s/archive/refs/tags/%s" % (
14+
r = requests.get("https://github.com/%s/%s" % (
1515
self.repo, self.file.format(**locals())), allow_redirects=True)
1616

1717
#we got not a valid answer of a file:

0 commit comments

Comments
 (0)