Fixes bug to count only 2021 contributors

This commit is contained in:
Julien Lengrand-Lambert
2021-12-22 10:51:24 +01:00
parent a334eac285
commit 43d5d67e74

View File

@@ -5,7 +5,8 @@ commiters = []
with open('combined.txt', 'r') as reader:
for line in reader.readlines():
author = line.split("|")[1]
if author not in commiters:
timestamp = line.split("|")[0]
if author not in commiters and float(timestamp) > 1609455600: # 2021-01-01
commiters.append(author)
print(str(len(commiters)))