Added some dbg
Also found a bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SEARCH_STRING=$(rofi -dmenu)
|
SEARCH_STRING=$(rofi -l 0 -dmenu)
|
||||||
/home/arthurr/code/mini_projects/scryfall_deser/scripts/search_with_rofi_with_args.sh $SEARCH_STRING
|
/home/arthurr/code/mini_projects/scryfall_deser/scripts/search_with_rofi_with_args.sh $SEARCH_STRING
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ fn main() -> MtgCardExit {
|
|||||||
init_db();
|
init_db();
|
||||||
let mut path = get_local_cache_folder();
|
let mut path = get_local_cache_folder();
|
||||||
path.push(update);
|
path.push(update);
|
||||||
|
// FIXME - if you pass a bad file or something, it just deletes the db
|
||||||
update_db_with_file(path);
|
update_db_with_file(path);
|
||||||
return MtgCardExit::Success;
|
return MtgCardExit::Success;
|
||||||
}
|
}
|
||||||
@@ -88,6 +89,8 @@ fn main() -> MtgCardExit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let matching_cards = find_matching_cards_scryfall_style(&args.search_text);
|
let matching_cards = find_matching_cards_scryfall_style(&args.search_text);
|
||||||
|
dbg!(&args.search_text);
|
||||||
|
dbg!(&matching_cards);
|
||||||
|
|
||||||
if matching_cards.is_empty() {
|
if matching_cards.is_empty() {
|
||||||
let mtg_words = get_all_mtg_words();
|
let mtg_words = get_all_mtg_words();
|
||||||
|
|||||||
Reference in New Issue
Block a user