Exclude custom ontologies

main
Bob Mottram 2021-08-08 20:55:54 +01:00
parent 7105bbe8cd
commit 17c2a54d5d
1 changed files with 3 additions and 2 deletions

View File

@ -2821,9 +2821,10 @@ def getCategoryTypes(baseDir: str) -> []:
for f in files: for f in files:
if not f.endswith('.json'): if not f.endswith('.json'):
continue continue
if f.startswith('custom'):
continue
ontologyFilename = f.split('.')[0] ontologyFilename = f.split('.')[0]
if 'Types' in ontologyFilename and \ if 'Types' in ontologyFilename:
not ontologyFilename.startswith('custom'):
categories.append(ontologyFilename.replace('Types', '')) categories.append(ontologyFilename.replace('Types', ''))
break break
return categories return categories