mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
Merge pull request #3356 from jumpserver/dev_tree
[Bugfix] 修复 TreeNode bug
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user