mirror of
https://github.com/jlengrand/gource-organization-vizualization.git
synced 2026-03-10 08:21:21 +00:00
Fixes bug to count only 2021 contributors
This commit is contained in:
@@ -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)))
|
||||
Reference in New Issue
Block a user