if len(set(index[slug])) > 1:
logger.warning("name collision: {}".format(", ".join(index[slug])))
newname = index[slug][0]
if newname.isupper():
logger.info("not uppercasing: {} -> {}".format(name, newname))
return name
if newname != name:
After Change
if len(set(index[slug])) > 1:
logger.warning("name collision: {}".format(", ".join(index[slug])))
newname = index[slug][0]
if not name.isupper() and newname.isupper():
// this could backfire for initials, like Abc -> ABC
logger.info("not uppercasing: {} -> {}".format(name, newname))
return name