mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Every surface that enumerates roms to point at their files was fetching the whole platform and discarding the file-less ones in Python. Give filter_roms a `physical` filter to sit alongside `missing`, and pair the two in HAS_FILE_ON_DISK_FILTERS, the query-side twin of Rom.has_file_on_disk. - The device feeds lose _servable_roms(); the three get_roms_scalar calls spread the filters instead, so the dropped roms no longer get their RomFile rows selectin-loaded just to be thrown away. - Both exporters filter in SQL. Pegasus was collecting and copying assets for roms it went on to skip, and the ES-DE guard's `not rom` arm was dead. - The bulk zip download applies them to its platform/collection selector. A physical game contributes no files, so it only inflated the rom count in the log line, the generated "N ROMs (crc).zip" filename, and the bulk cache namespace. Roms named by explicit id still bypass this. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>