From f1f0b6a781e35ad4775bfed5b0d88d5c5e991d7d Mon Sep 17 00:00:00 2001 From: Praveen Mudalgeri Date: Wed, 6 Aug 2025 14:41:13 +0530 Subject: [PATCH] fix: enable recursive JSON discovery in indexWorkflows (fixes Issue #74) --- workflow_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow_db.py b/workflow_db.py index 718d6fe..4a5ef8c 100644 --- a/workflow_db.py +++ b/workflow_db.py @@ -435,7 +435,7 @@ class WorkflowDatabase: print(f"Warning: Workflows directory '{self.workflows_dir}' not found.") return {'processed': 0, 'skipped': 0, 'errors': 0} - json_files = glob.glob(os.path.join(self.workflows_dir, "*.json")) + json_files = glob.glob(os.path.join(self.workflows_dir, "**", ".json"), recursive=True) if not json_files: print(f"Warning: No JSON files found in '{self.workflows_dir}' directory.")