fix: count systems once per normalized id

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 16:11:13 +02:00
1 parent cdeed8a523
commit 4f42c52a7f
5 files changed
+42 -23

No files matched your search

+2 -3
View File
@@ -28,6 +28,7 @@ from common import (
load_platform_config,
load_platform_registry,
resolve_platform_cores,
system_index,
unique_emulator_profiles,
write_if_changed,
)
@@ -321,9 +322,7 @@ def generate_readme(db: dict, platforms_dir: str) -> str:
)
acquirable_total = missing_total - unsourceable_total
system_ids: set[str] = set()
for p in profiles.values():
system_ids.update(p.get("systems", []))
system_ids = system_index(profiles)
lines = [
'<p align="center">',