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():
prefix dep: <>
prefix doap: <>
SELECT ?projectId
SELECT ?projectId ?gitlabTag
?project a doap:Project .
?project doap:name ?projectName .
?project lgg:heptapod_id ?projectId .
?project doap:category ?gitlabTag .
?project lgg:has_capture_deprecated_warnings true
} ORDER BY ?projectName
......@@ -105,7 +106,9 @@ def get_all_cubes():
if len(query_result) == 0:
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"):
yield cnx.projects.get(id=project_id)
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