fetch-contributor-data: Normalize names to NFC.

Fixes an (admittedly picky) HTML validator warning on
https://zulip.com/team/.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-08-23 15:24:45 -07:00 committed by Anders Kaseorg
parent a9b1ac288e
commit 9406c21340
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import json
import logging
import os
import sys
import unicodedata
from datetime import date
from random import randrange
from time import sleep
@ -141,7 +142,9 @@ def update_contributor_data_file() -> None:
name = contributor.get("name")
if name is not None:
contributor_username_to_data[username]["name"] = name
contributor_username_to_data[username]["name"] = unicodedata.normalize(
"NFC", name
)
# remove duplicate contributions count
# find commits at the time of split and subtract from zulip-server