Commit 437c4b28 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat(deprecated): only display cw-core projects and used cubes

parent 82bfeaa31f7c
...@@ -90,12 +90,13 @@ def get_all_cubes(): ...@@ -90,12 +90,13 @@ def get_all_cubes():
prefix dep: <http://ontologi.es/doap-deps#> prefix dep: <http://ontologi.es/doap-deps#>
prefix doap: <http://usefulinc.com/ns/doap#> prefix doap: <http://usefulinc.com/ns/doap#>
SELECT ?projectId SELECT ?projectId ?gitlabTag
WHERE { WHERE {
?project a doap:Project . ?project a doap:Project .
?project doap:name ?projectName . ?project doap:name ?projectName .
?project lgg:heptapod_id ?projectId . ?project lgg:heptapod_id ?projectId .
?project doap:category ?gitlabTag .
?project lgg:has_capture_deprecated_warnings true ?project lgg:has_capture_deprecated_warnings true
} ORDER BY ?projectName } ORDER BY ?projectName
""" """
...@@ -105,7 +106,9 @@ def get_all_cubes(): ...@@ -105,7 +106,9 @@ def get_all_cubes():
if len(query_result) == 0: if len(query_result) == 0:
raise Exception(f"ERROR: query failed to find any cube. Query:\n\n{query}") raise Exception(f"ERROR: query failed to find any cube. Query:\n\n{query}")
for (project_id,) in query_result: for (project_id, tag) in query_result:
if str(tag) not in ("cw-core", "project-dependency"):
continue
yield cnx.projects.get(id=project_id) yield cnx.projects.get(id=project_id)
......
...@@ -122,4 +122,4 @@ table.qa td.readthedocs { ...@@ -122,4 +122,4 @@ table.qa td.readthedocs {
table.qa td.readthedocs a { table.qa td.readthedocs a {
text-decoration: none; text-decoration: none;
font-style: italic; font-style: italic;
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment