Skip to content

Commit

Permalink
2024-02-21 固定用户名
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry-Flynn authored Feb 21, 2024
1 parent fa7a21e commit 740c03c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ def getdata(name):
return returndata
class handler(BaseHTTPRequestHandler):
def do_GET(self):
path = self.path
user = path.split('?')[1]
# 2024-02-21 固定用户名 https://github.com/Zfour/python_github_calendar_api/issues/20
# path = self.path
# user = path.split('?')[1]
user = 'Barry-Flynn'
data = getdata(user)
self.send_response(200)
self.send_header('Access-Control-Allow-Origin', '*')
Expand Down

0 comments on commit 740c03c

Please sign in to comment.