Skip to content

Commit 740c03c

Browse files
authored
2024-02-21 固定用户名
Zfour/python_github_calendar_api#20
1 parent fa7a21e commit 740c03c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/index.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ def getdata(name):
4040
return returndata
4141
class handler(BaseHTTPRequestHandler):
4242
def do_GET(self):
43-
path = self.path
44-
user = path.split('?')[1]
43+
# 2024-02-21 固定用户名 https://github.com/Zfour/python_github_calendar_api/issues/20
44+
# path = self.path
45+
# user = path.split('?')[1]
46+
user = 'Barry-Flynn'
4547
data = getdata(user)
4648
self.send_response(200)
4749
self.send_header('Access-Control-Allow-Origin', '*')

0 commit comments

Comments
 (0)