Skip to content

Commit

Permalink
👨‍🔧fix: 修正匹配正则;
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuo committed Nov 22, 2023
1 parent 951a988 commit 4815bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def getdata(name):
data = gitpage.text
datadatereg = re.compile(r'data-date="(.*?)" data-level')

datacountreg = re.compile(r'<tool-tip .*?class="sr-only position-absolute">(.*?) contributions')
datacountreg = re.compile(r'<tool-tip .*?class="sr-only position-absolute">(.*?) contribution')
datadate = datadatereg.findall(data)
datacount = datacountreg.findall(data)
datacount = list(map(int, [0 if i == "No" else i for i in datacount]))
Expand Down

1 comment on commit 4815bd3

@vercel
Copy link

@vercel vercel bot commented on 4815bd3 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

py-gitcalendar – ./

py-gitcalendar-git-master-rr210.vercel.app
py-gitcalendar.vercel.app
py-gitcalendar-rr210.vercel.app

Please sign in to comment.