Handle update endings on ids

main
Bob Mottram 2022-11-13 20:33:24 +00:00
parent 14abebf64a
commit 681ea36798
1 changed files with 4 additions and 0 deletions

View File

@ -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