From 7131ef705c1f979ad483b87bba7d89ba88b27f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Mon, 9 Mar 2020 09:34:52 +0100 Subject: [PATCH] ignoring case in emails --- scripts/metrics/repo_hist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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