Fix multi-copy car handling: track all configs per guid and add copy count
- Change owned_configs from HashMap<String, String> to HashMap<String, Vec<String>> to capture all configs across copies (previously last-write-wins lost data) - Add copy_count field to MyCarsData and CarCounts for wishlist copy-coverage logic - Fix improve.csv to exclude already-owned final configs as targets (e.g., Fiat Campagnola 1974 now targets 332 instead of already-owned 323) - Fix wishlist to check all owned configs for exact-match and final-build detection - Fix trash to check all configs for final-build-not-best detection - Update all tests for new Vec type and add multi-copy improve test
This commit is contained in:
parent
b24b274d25
commit
62688926c3
7 changed files with 494 additions and 83 deletions
|
|
@ -57,7 +57,6 @@ pub async fn run_analysis(
|
|||
let ctx = AnalysisContext::new();
|
||||
let owned = Arc::new(my_data.owned.clone());
|
||||
let car_list = parse_all_times(owned, &ctx, cars_db_path, times_dir).await?;
|
||||
// Move only owned_configs; construct a new MyCarsData to transfer ownership.
|
||||
let counts = compute_car_counts(&ctx, car_list, my_data.owned_configs.clone());
|
||||
let counts = compute_car_counts(&ctx, car_list, my_data.owned_configs.clone(), my_data.copy_count.clone());
|
||||
Ok((ctx, counts))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue