uidの調整

This commit is contained in:
yuuki 2024-11-24 02:04:03 +00:00
parent 161343909a
commit dc1f156025

2
app.py
View file

@ -22,7 +22,7 @@ def ip_to_uid(ip: Optional[str]) -> str:
if not ip:
return "-"
return b64encode(ip.encode("utf-8")).decode("utf-8")[:11]
return b64encode(ip.encode("utf-8")).decode("utf-8")[-11:]
def replace_ng_words(src: str, ng_words: List[str]) -> str:
result = src