mirror of https://github.com/zulip/zulip.git
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:
parent
a9b1ac288e
commit
9406c21340
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue