Skip to content

Commit ba41c4d

Browse files
committed
Fix regular expression in getdata function
1 parent 24f7678 commit ba41c4d

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="(.*?)" id="contribution-day-component"')
12+
datadatereg = re.compile(r'data-date="(.*?)" id="contribution-day-component')
1313
datacountreg = re.compile(r'<tool-tip .*?class="sr-only position-absolute">(.*?) contribution')
1414
datadate = datadatereg.findall(data)
1515
datacount = datacountreg.findall(data)

0 commit comments

Comments
 (0)