diff --git a/scripts/metrics/repo_hist.py b/scripts/metrics/repo_hist.py index 311af0e..edab25a 100644 --- a/scripts/metrics/repo_hist.py +++ b/scripts/metrics/repo_hist.py @@ -38,8 +38,8 @@ class MyCommit: def __init__(self, commit: git.Commit): self.chash = commit.hexsha # type: str self.author = hash(commit.author.email + MyCommit.SALT) # type: int - self.author_domain = commit.author.email.rsplit("@")[-1] # type: str - self.commiter = hash(commit.committer.email + MyCommit.SALT) # type:int + self.author_domain = commit.author.email.rsplit("@")[-1].lower() # type: str + self.commiter = hash(commit.committer.email.lower() + MyCommit.SALT) # type:int self.summary = commit.summary # type: str self.date = datetime.datetime.fromtimestamp( commit.committed_date) # type: datetime.datetime