optimization fix

This commit is contained in:
2024-04-14 12:48:04 +03:00
parent 47fd5b3b9d
commit c2e6788a85
3 changed files with 13 additions and 6 deletions

View File

@@ -114,7 +114,10 @@ impl MemoryCardsEditScene {
.unwrap();
let cards_iter = stmt
.query_map([], |row| {
let image_path: String = row.get(0).unwrap();
let image_path: String = match row.get(0){
Ok(path) => path,
Err(_) => String::from("")
};
let image_path: String = get_images_store_path() + &image_path;
let hieroglyph: String = row.get(1).unwrap();
let reading: String = row.get(2).unwrap();