correct Guanghu OS master and Linux subcontrol topology

This commit is contained in:
冰朔 2026-08-10 22:22:46 +08:00
commit 4e64aabbf1
13 changed files with 509 additions and 22 deletions

View file

@ -31,6 +31,8 @@ NODE_FIELDS = {"id", "kind", "statement", "parents", "evidence", "state"}
def load_contributions(directory: Path = DEFAULT_CONTRIBUTIONS) -> list[dict]:
contributions = []
for path in sorted(directory.glob("*.json")):
if path.name.startswith("._"):
continue
with path.open(encoding="utf-8") as handle:
item = json.load(handle)
missing = REQUIRED_FIELDS.difference(item)