This commit is contained in:
Georges-Antoine Assi
2026-03-07 23:43:58 -05:00
parent c515f1855c
commit aa4abe6b7c
2 changed files with 1 additions and 5 deletions

View File

@@ -394,11 +394,7 @@ def build_launchbox_metadata(
local: dict[str, str] | None = None,
remote: dict | None = None,
images: list[LaunchboxImage],
**kwargs: object,
) -> LaunchboxMetadata:
if local is None and isinstance(kwargs.get("local_entry"), dict):
local = kwargs["local_entry"] # type: ignore[assignment]
local_release_date = local.get("ReleaseDate") if local else None
remote_release_date = remote.get("ReleaseDate") if remote else None
release_date_raw = coalesce(local_release_date, remote_release_date)

View File

@@ -345,7 +345,7 @@ class TestLocalSource:
"super mario bros..nes": {"Title": "Cached Entry", "DatabaseID": "9999"}
}
source._cache["nes"] = cached_index
source._mtime["nes"] = nes_xml.stat().st_mtime_ns
source._mtime["nes"] = nes_xml.stat().st_mtime_ns # trunk-ignore(ruff/ASYNC240)
with patch(
"handler.metadata.launchbox_handler.local_source.LAUNCHBOX_PLATFORMS_DIR",