mirror of https://gitlab.com/bashrc2/epicyon
Handle update endings on ids
parent
14abebf64a
commit
681ea36798
4
utils.py
4
utils.py
|
@ -758,10 +758,14 @@ def remove_id_ending(id_str: str) -> str:
|
|||
id_str = id_str[:-len('/replies')]
|
||||
elif id_str.endswith('/delete'):
|
||||
id_str = id_str[:-len('/delete')]
|
||||
elif id_str.endswith('/update'):
|
||||
id_str = id_str[:-len('/update')]
|
||||
if id_str.endswith('#Create'):
|
||||
id_str = id_str.split('#Create')[0]
|
||||
elif id_str.endswith('#delete'):
|
||||
id_str = id_str.split('#delete')[0]
|
||||
elif id_str.endswith('#update'):
|
||||
id_str = id_str.split('#update')[0]
|
||||
return id_str
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue