From 7105bbe8cd489dd4c381a80ed6a96e446b4ff80f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 Aug 2021 20:53:11 +0100 Subject: [PATCH] Exclude custom ontologies --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index bd00247df..a524bcb04 100644 --- a/utils.py +++ b/utils.py @@ -2822,7 +2822,8 @@ def getCategoryTypes(baseDir: str) -> []: if not f.endswith('.json'): continue ontologyFilename = f.split('.')[0] - if 'Types' in ontologyFilename: + if 'Types' in ontologyFilename and \ + not ontologyFilename.startswith('custom'): categories.append(ontologyFilename.replace('Types', '')) break return categories