From 17c2a54d5d4098247f29411fed394c169ce37494 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 Aug 2021 20:55:54 +0100 Subject: [PATCH] Exclude custom ontologies --- utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index a524bcb04..8b39b9374 100644 --- a/utils.py +++ b/utils.py @@ -2821,9 +2821,10 @@ def getCategoryTypes(baseDir: str) -> []: for f in files: if not f.endswith('.json'): continue + if f.startswith('custom'): + continue ontologyFilename = f.split('.')[0] - if 'Types' in ontologyFilename and \ - not ontologyFilename.startswith('custom'): + if 'Types' in ontologyFilename: categories.append(ontologyFilename.replace('Types', '')) break return categories