From bf535006f996daf49c26a4852b4238c535c9d4e4 Mon Sep 17 00:00:00 2001 From: Verrasse Date: Sat, 28 Jun 2025 01:52:58 +0400 Subject: [PATCH] Fixed bug with extracting all items --- python/deca/deca/db_view.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python/deca/deca/db_view.py b/python/deca/deca/db_view.py index c2d7373..8fff0a2 100644 --- a/python/deca/deca/db_view.py +++ b/python/deca/deca/db_view.py @@ -182,9 +182,12 @@ def node_update(self): for capture in self.capture: if isinstance(capture, str): - if len(capture) > 0 and capture[-1] == '/': - capture = capture + r'%' - capture = capture.encode('ascii') + if len(capture) > 0: + if capture[-1] == '/': + capture = capture + r'%' + capture = capture.encode('ascii') + else: + capture = None self.node_accumulate( self._nodes_selected, self._nodes_selected_uids, self._nodes_selected_uids_no_vpaths,