For the time being, make the 'total' experience be only up to one year before the commits we analyze

This commit is contained in:
Marco Castelluccio 2019-05-15 14:48:15 +02:00
Родитель d5ba1b20df
Коммит 837169ebce
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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.