Exclude custom ontologies

main
Bob Mottram 2021-08-08 20:53:11 +01:00
parent e62939e5c0
commit 7105bbe8cd
1 changed files with 2 additions and 1 deletions

View File

@ -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