Added some dbg

Also found a bug
This commit is contained in:
2025-08-21 02:46:20 +01:00
parent 130287caa7
commit 43a75c0b92
2 changed files with 4 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ fn main() -> MtgCardExit {
init_db();
let mut path = get_local_cache_folder();
path.push(update);
// FIXME - if you pass a bad file or something, it just deletes the db
update_db_with_file(path);
return MtgCardExit::Success;
}
@@ -88,6 +89,8 @@ fn main() -> MtgCardExit {
}
let matching_cards = find_matching_cards_scryfall_style(&args.search_text);
dbg!(&args.search_text);
dbg!(&matching_cards);
if matching_cards.is_empty() {
let mtg_words = get_all_mtg_words();