Skip to content

Commit

Permalink
====refactor: remove invalid comment====
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyc666 committed Dec 7, 2021
1 parent 61efcc6 commit 0cef912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ def dic_plus_one(dic, key):


class GitlabApiCount:
"""
Worker类
"""

# 所有commit的集合,用于去重,这里的重复,可能是代码merge造成的
total_commit_map = {}

Expand Down
7 changes: 2 additions & 5 deletions src/run_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@


class GitlabApiCount:
"""
Worker类
"""

# 所有commit的集合,用于去重,这里的重复,可能是代码merge造成的
total_commit_map = {}

Expand Down Expand Up @@ -66,7 +64,7 @@ def get_projects(self):
project_info.project_desc = r3['description']
project_info.project_url = r3['web_url']
project_info.path = r3['path']
# 构件好线程
#
self.get_branches(r3['id'], project_info)

# 数据聚合
Expand All @@ -83,7 +81,6 @@ def get_projects(self):
final_commit_map[detail.author_email] = exist_detail
write_to_csv("%s/GitStatic_%s/%s_%s.csv" % (config.export_path, config.t_from, 'total', config.t_from),
final_commit_map, "extra")
return

def get_branches(self, project_id, project_info):
"""
Expand Down

0 comments on commit 0cef912

Please sign in to comment.