diff --git a/src-tauri/src/db/search.rs b/src-tauri/src/db/search.rs index d5e9834a..e83cbd4b 100644 --- a/src-tauri/src/db/search.rs +++ b/src-tauri/src/db/search.rs @@ -308,7 +308,7 @@ pub async fn search_position( if let Some(position_query) = &query.position { if position_query.can_reach(&end_material, *end_pawn_home as u16) { - if let Ok(Some(m)) = get_move_after_match(game, fen, &position_query) { + if let Ok(Some(m)) = get_move_after_match(game, fen, position_query) { if sample_games.lock().unwrap().len() < 10 { sample_games.lock().unwrap().push(*id); } diff --git a/src/utils/repertoire.ts b/src/utils/repertoire.ts index 204facc3..64c432c4 100644 --- a/src/utils/repertoire.ts +++ b/src/utils/repertoire.ts @@ -72,6 +72,8 @@ export async function openingReport({ path: referenceDb, type: "exact", fen: item.node.fen, + color: "white", + player: null, }, "opening", );