Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github 页面改版,更新 regex 规则 #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zkeq
Copy link

@zkeq zkeq commented Jan 6, 2023

原版:
49a77f9684aa1bbc2271c23e2ee94e83
改版后:
da44dba543bbe9aca7104e850671e0d9

更新了正则使其可以继续运行

    datacountreg = re.compile(r'<span class="sr-only">(.*?) contribution')

No 替换成 0

    datacount = list(map(int, [0 if i == "No" else i for i in datacount]))

2023.7.16 再次跟进正则

@vercel
Copy link

vercel bot commented Jan 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
python-github-calendar-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2023 2:11pm

@zkeq

This comment was marked as resolved.

@zkeq
Copy link
Author

zkeq commented Jan 6, 2023

https://python-github-calendar-api-weld.vercel.app/api?zkeq

我这个地址是没问题的 🤔 预览地址怎么还是500

@zkeq
Copy link
Author

zkeq commented Jan 6, 2023

我又部署了一遍 似乎没问题

image

@flow2000
Copy link

flow2000 commented Jan 6, 2023

亲测有效,已拉取代码@zkeq

@zkeq zkeq mentioned this pull request Jan 7, 2023
Barry-Flynn added a commit to Barry-Flynn/python_github_calendar_api that referenced this pull request Jan 12, 2023
参考如下链接,更新了正则使其可以继续运行
Zfour/python_github_calendar_api#5
@Barry-Flynn
Copy link

已亲测,替换完两行python代码后,服务立即正常生效!

@baiwumm
Copy link

baiwumm commented Oct 13, 2023

已亲测,替换完两行python代码后,服务立即正常生效!
image
兄弟,数据返回的月份都错乱了,有空方便修复一下吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants