Added some dbg
Also found a bug
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user