1
0
Fork 0

ignoring case in emails

This commit is contained in:
Christian Kühnel 2020-03-09 09:34:52 +01:00
parent 2975323644
commit 7131ef705c

View file

@ -38,8 +38,8 @@ class MyCommit:
def __init__(self, commit: git.Commit): def __init__(self, commit: git.Commit):
self.chash = commit.hexsha # type: str self.chash = commit.hexsha # type: str
self.author = hash(commit.author.email + MyCommit.SALT) # type: int self.author = hash(commit.author.email + MyCommit.SALT) # type: int
self.author_domain = commit.author.email.rsplit("@")[-1] # type: str self.author_domain = commit.author.email.rsplit("@")[-1].lower() # type: str
self.commiter = hash(commit.committer.email + MyCommit.SALT) # type:int self.commiter = hash(commit.committer.email.lower() + MyCommit.SALT) # type:int
self.summary = commit.summary # type: str self.summary = commit.summary # type: str
self.date = datetime.datetime.fromtimestamp( self.date = datetime.datetime.fromtimestamp(
commit.committed_date) # type: datetime.datetime commit.committed_date) # type: datetime.datetime