# HG changeset patch # User Alain Mazy # Date 1792673384 -7200 # Node ID 69cf0d90c525d33f2a343625e98fc94c10e86d9e # Parent 0bfb716551230ac7e592c405dad05234eaa2bc60 fix diff -r 0bfb71655123 -r 69cf0d90c525 Plugins/Worklists/Run.py --- a/Plugins/Worklists/Run.py Thu Oct 22 12:55:16 2026 +0200 +++ b/Plugins/Worklists/Run.py Thu Oct 22 14:49:44 2026 +0200 @@ -92,7 +92,7 @@ def ClearDatabase(): for f in os.listdir(WORKING): - if f != 'lockfile': + if f != 'lockfile' and f != '.keep': os.remove(os.path.join(WORKING, f)) def AddToDatabase(worklist): @@ -142,7 +142,7 @@ if not isQuery: tag = as_ascii[4:13].lower() if not tag in ignoreTags: - line_without_comment = re.sub(rb'\s*#.*', b'', line) + line_without_comment = re.sub(b'#.*', b'', line).strip() line_without_comment = line_without_comment.replace(b'\0', b'') current.append(line_without_comment[3:])