From 681ea36798d3fb6615852ead53c50765b1672784 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 13 Nov 2022 20:33:24 +0000 Subject: [PATCH] Handle update endings on ids --- utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils.py b/utils.py index 8ff14db97..9b6551648 100644 --- a/utils.py +++ b/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