From 95e9022173b845201fee37ac85e2d1f2d05e94d0 Mon Sep 17 00:00:00 2001 From: Kevin Guillaumond Date: Wed, 3 Apr 2024 21:25:11 -0700 Subject: [PATCH] Fix TypeError when unparenting --- GTG/core/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GTG/core/tasks.py b/GTG/core/tasks.py index a8db3cb85..012ab6db4 100644 --- a/GTG/core/tasks.py +++ b/GTG/core/tasks.py @@ -939,7 +939,7 @@ def unparent(self, item_id: UUID, parent_id: UUID) -> None: parent = self.lookup[parent_id] # remove inline references to the former subtask - parent.content = re.sub(r'\{\!\s*'+item_id+'\s*\!\}','',parent.content) + parent.content = re.sub(r'\{\!\s*'+str(item_id)+'\s*\!\}','',parent.content) self.model.append(item) parent.notify('has_children')