mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
The scan tracker computed total_platforms and total_roms over every filesystem platform, ignoring both the selected platforms and the scan type. For a "new platforms" scan, existing platforms are skipped inside _identify_platform, so their ROMs never count toward scanned_roms, yet they were all included in total_roms. This made the tracker wildly overcount (the whole library instead of just the new platform). Resolve the platform list before computing totals and, for NEW_PLATFORMS scans, exclude platforms that already exist in the database so the totals match what is actually processed. Fixes #3599 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0158RJnc7MmAbwRz6Qiyrj5a