Files
romm/backend/models
nendo 1c40160201 test(roms): pin the derived file stats to the subqueries they replace
The with_files path computes multi_file, top_level_file_count and
has_soundtrack in Python; the other path reads them from correlated
subqueries. The differential test asserts both answer the same for a
flat file, a folder with two top-level files, a nested single file, a
soundtrack folder and a rom with no files at all, so neither predicate
can be edited without the other.

Also assert a rom's files load in a fixed number of queries rather than
one per file.

Claude-Session: https://claude.ai/code/session_01J1pbRJBY3PatzkB5skQNEU
2026-08-22 08:49:42 +09:00
..
2026-07-01 09:06:12 -04:00
2026-06-18 07:57:09 -04:00
2026-07-23 14:44:56 -04:00
2026-07-20 19:04:59 -04:00
2026-03-14 23:35:04 -04:00
2026-08-01 15:36:16 -04:00