uidの調整
This commit is contained in:
parent
161343909a
commit
dc1f156025
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -22,7 +22,7 @@ def ip_to_uid(ip: Optional[str]) -> str:
|
||||||
if not ip:
|
if not ip:
|
||||||
return "-"
|
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:
|
def replace_ng_words(src: str, ng_words: List[str]) -> str:
|
||||||
result = src
|
result = src
|
||||||
|
|
Loading…
Add table
Reference in a new issue