зеркало из https://github.com/mozilla/bugbug.git
For the time being, make the 'total' experience be only up to one year before the commits we analyze
This commit is contained in:
Родитель
d5ba1b20df
Коммит
837169ebce
|
@ -492,6 +492,13 @@ def download_commits(repo_dir, date_from):
|
|||
path: "::".join(component) for path, component in path_to_component.items()
|
||||
}
|
||||
|
||||
# TODO: Remove this once calculate_experiences is faster and less memory hungry.
|
||||
commits = [
|
||||
commit
|
||||
for commit in commits
|
||||
if commit.pushdate > date_from - relativedelta(years=1)
|
||||
]
|
||||
|
||||
calculate_experiences(commits)
|
||||
|
||||
# Exclude commits outside the range we care about.
|
||||
|
|
Загрузка…
Ссылка в новой задаче