mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 06:48:52 -06:00
refactor: one whole-tree gap report for both
This commit is contained in:
1 parent
5d8320f735
commit
82cb80d554
6 files changed
+48
-38
No files matched your search
@@ -21,7 +21,6 @@ from model.database import sha1_at
|
||||
from model.platforms import PLATFORMS_DIR_KEY
|
||||
from model.profiles import is_emulator
|
||||
from packs.consumers import FileConsumers
|
||||
from packs.supplemental import SupplementalIndex
|
||||
from sitegen.apiitems import core_index_items, system_index_items
|
||||
from sitegen.config import DATA_LICENSE, REPO_URL, build_commit
|
||||
from core.paths import REPO_ROOT
|
||||
@@ -237,29 +236,6 @@ def _emulator_export_items(profiles: dict) -> list[dict]:
|
||||
]
|
||||
|
||||
|
||||
def build_emulator_gap_report(
|
||||
profiles: dict,
|
||||
coverages: dict,
|
||||
db: dict,
|
||||
data_names: SupplementalIndex | None = None,
|
||||
) -> dict:
|
||||
"""Files a core loads that no platform declares, per emulator profile.
|
||||
|
||||
The gap analysis page and the published gaps export must not compute this
|
||||
twice and drift. Both read this one report.
|
||||
"""
|
||||
from packs.crossref import cross_reference as run_cross_reference, global_report_scope
|
||||
|
||||
declared, scope = global_report_scope(
|
||||
[cov["config"] for cov in coverages.values()], db, profiles)
|
||||
unique_profiles = {
|
||||
k: v
|
||||
for k, v in profiles.items()
|
||||
if is_emulator(v)
|
||||
}
|
||||
return run_cross_reference(unique_profiles, declared, db, data_names=data_names, **scope)
|
||||
|
||||
|
||||
def _gap_export_rows(
|
||||
coverages: dict, gap_report: dict | None = None, db: dict | None = None,
|
||||
profiles: dict | None = None,
|
||||
|
||||
Reference in new issue
Block a user