From a6531fedb5a832d0a0e2b8e4a17159a04fa610f3 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Fri, 18 Oct 2019 15:23:46 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=20TreeNode=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/tree.py b/apps/common/tree.py index a9da1482f..1ffe4347e 100644 --- a/apps/common/tree.py +++ b/apps/common/tree.py @@ -51,7 +51,7 @@ class TreeNode: result = True elif self.pId != other.pId: result = self.pId > other.pId - elif self.id.startswith('-') and not other.id.startswith('-'): + elif str(self.id).startswith('-') and not str(other.id).startswith('-'): result = False else: result = self.name > other.name