Skip to content

Commit

Permalink
fixing the path find issue with wrong slash direction. This was causi…
Browse files Browse the repository at this point in the history
…ng errors when deleting sub-projects with deeper level (2+)
  • Loading branch information
masqu3rad3 committed Apr 9, 2024
1 parent f9afcc8 commit 5c0e648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tik_manager4/objects/subproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def _remove_sub_project(self, uid=None, path=None):
if state != 1:
return -1

parent_path = str(Path(kill_sub.path).parent) or ""
parent_path = (Path(kill_sub.path).parent).as_posix() or ""
parent_sub = self.find_sub_by_path(parent_path)
del parent_sub.subs[kill_sub.name]

Expand Down

0 comments on commit 5c0e648

Please sign in to comment.