提交 d1d8b3e9 编写于 作者: F feilong

fix company email

上级 9e9b1441
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -205,9 +205,7 @@ def rank_personal_top_n(config, ctx): ...@@ -205,9 +205,7 @@ def rank_personal_top_n(config, ctx):
email_parts = person['actor_email'].split("@") email_parts = person['actor_email'].split("@")
if len(email_parts) > 1 and email_parts[1] != "": if len(email_parts) > 1 and email_parts[1] != "":
post_fix = email_parts[len(email_parts)-1] company_by_email = email_parts[1].replace("..", ".")
post_parts = post_fix.replace("..", ".").split(".")
company_by_email = ".".join(post_parts[-2:])
person['company_by_email'] = company_by_email person['company_by_email'] = company_by_email
else: else:
person['company_by_email'] = "未知公司,邮箱错误" person['company_by_email'] = "未知公司,邮箱错误"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册