diff options
-rwxr-xr-x | scripts/update_host_compatibility.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/update_host_compatibility.py b/scripts/update_host_compatibility.py index 84898b0..1a245e8 100755 --- a/scripts/update_host_compatibility.py +++ b/scripts/update_host_compatibility.py @@ -144,7 +144,7 @@ def run(lv2_path, data_filenames, out): for data_filename in data_filenames: graph.load(data_filename, format="turtle") - hosts = list(graph.subjects(rdf.type, compat.Host)) + hosts = sorted(list(graph.subjects(rdf.type, compat.Host))) features = sorted(list(graph.subjects(rdf.type, lv2.Feature))) port_types = sorted(list(graph.subjects(rdfs.subClassOf, lv2.Port))) @@ -164,7 +164,7 @@ def run(lv2_path, data_filenames, out): else: row.append(_spec_link(feature)) - for host in graph.subjects(rdf.type, compat.Host): + for host in hosts: if _host_implements_feature(graph, host, feature): row.append('<span class="success">Yes</span>') else: @@ -180,7 +180,7 @@ def run(lv2_path, data_filenames, out): for port_type in port_types: with RowContext(out) as row: row.append(_spec_link(port_type)) - for host in graph.subjects(rdf.type, compat.Host): + for host in hosts: if (host, compat.supportsPortType, port_type) in graph: row.append('<span class="success">Yes</span>') else: |