mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
A game added today had no edges until the 5:30 AM rebuild, so its "Similar games" section was empty and nothing could reach it from a feed. `build_for` scores a handful of ROMs against the current library instead of sweeping every pair, and folds them into the stored neighbour lists of the games they matched so the new game is reachable from both directions. The full build is the same sweep with every ROM as a target, so the two paths share one implementation rather than drifting. The scan hands over the ids it wrote. Past MAX_TOP_UP_ROMS the incremental path saves nothing, so that case queues a rebuild rather than blocking the scan on work a rebuild would redo. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
14 lines
384 B
Python
14 lines
384 B
Python
from .builder import BuildStats, SimilarityBuilder, top_up_similarity
|
|
from .feed import invalidate_all_cached_feeds, invalidate_cached_feed
|
|
from .serving import recommended_roms, similar_roms
|
|
|
|
__all__ = [
|
|
"BuildStats",
|
|
"SimilarityBuilder",
|
|
"invalidate_all_cached_feeds",
|
|
"invalidate_cached_feed",
|
|
"recommended_roms",
|
|
"similar_roms",
|
|
"top_up_similarity",
|
|
]
|