From ee79efd540d5e6cc6c02405b00494ca31bd79e69 Mon Sep 17 00:00:00 2001 From: Calum Macdonald Date: Mon, 2 Oct 2023 13:59:22 +0100 Subject: [PATCH] update available --- available.json | 6 ++++-- hdr_schemata/utils/print_structure.py | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/available.json b/available.json index 0a269fa..527214c 100644 --- a/available.json +++ b/available.json @@ -6,6 +6,8 @@ "1.0" ], "SchemaOrg": [ - "default" + "default", + "BioSchema", + "GoogleRecommended" ] -} +} \ No newline at end of file diff --git a/hdr_schemata/utils/print_structure.py b/hdr_schemata/utils/print_structure.py index 77f9bd0..186445c 100644 --- a/hdr_schemata/utils/print_structure.py +++ b/hdr_schemata/utils/print_structure.py @@ -2,10 +2,10 @@ import json structure = {} -for schema in glob.glob('metadata/**/schema.json',recursive=True): +for schema in glob.glob('hdr_schemata/models/**/schema.json',recursive=True): items = schema.split('/') - model = items[1] - version = items[2] + model = items[2] + version = items[3] if model not in structure: structure[model] = [] structure[model].append(version)