Skip to content

Commit c95f5bb

Browse files
authored
fix reg
1 parent 8d1218c commit c95f5bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def list_split(items, n):
99
def getdata(name):
1010
gitpage = requests.get("https://github.com/" + name)
1111
data = gitpage.text
12-
datadatereg = re.compile(r'data-date="(.*?)" data-level')
12+
datadatereg = re.compile(r'data-date="(.*?)" id="contribution-day-component')
1313
datacountreg = re.compile(r'<span class="sr-only">(.*?) contribution')
1414
datadate = datadatereg.findall(data)
1515
datacount = datacountreg.findall(data)

0 commit comments

Comments
 (0)