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

@@ -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

View File

@@ -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();