mirror of https://gitlab.com/bashrc2/epicyon
Remove Create from ending
parent
b3e57c5fde
commit
9daad0bd5c
4
utils.py
4
utils.py
|
@ -595,8 +595,8 @@ def removeIdEnding(idStr: str) -> str:
|
||||||
idStr = idStr[:-len('/event')]
|
idStr = idStr[:-len('/event')]
|
||||||
elif idStr.endswith('/replies'):
|
elif idStr.endswith('/replies'):
|
||||||
idStr = idStr[:-len('/replies')]
|
idStr = idStr[:-len('/replies')]
|
||||||
if '#' in idStr:
|
if idStr.endswith('#Create'):
|
||||||
idStr = idStr.split('#')[0]
|
idStr = idStr.split('#Create')[0]
|
||||||
return idStr
|
return idStr
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue