Commit ea5ba2c4 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Fixed issue with ltree relative parent path of first node

parent 17abe145
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -191,6 +191,8 @@ class DbConnector(object):
            parentLtreeRelativePath = None
            if "." in parentLtreePath:
                parentLtreeRelativePath = ".".join(parentLtreePath.strip(".").split('.')[1:])
            if parentLtreeRelativePath is None:
                parentLtreeRelativePath = '' # first relative node
            out.write(f"parentLtreeRelativePath: {parentLtreeRelativePath}\n")
            out.write(f"parentLtreePath: {parentLtreePath}\n")
            out.write(f"parentPath: {node.parentPath}\n\n")