fix: update codex

Description:

Log:
This commit is contained in:
mikigo 2024-03-14 10:51:00 +08:00
parent 0776dc5405
commit 638a4881bc
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class CodeStatistics(Commit):
fix_method_num = 0 fix_method_num = 0
git_files = self.get_git_files(start_commit_id, end_commit_id) git_files = self.get_git_files(start_commit_id, end_commit_id)
for git_file in git_files: for git_file in git_files:
filepath = git_file.get("file").split(" ")[-1].strip("b/") filepath = "/".join(git_file.get("file").split(" ")[-1].split("/")[1:])
filename = filepath.split("/")[-1] filename = filepath.split("/")[-1]
if not filename.endswith(".py"): if not filename.endswith(".py"):