From ebf0fb9eb5f0a3a1cbd098181818f6828c76f08a Mon Sep 17 00:00:00 2001 From: Craig Drummond Date: Fri, 18 Feb 2022 23:08:21 +0000 Subject: [PATCH] Fix setting of Ignore --- src/db.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 8cce13f..5e9658b 100644 --- a/src/db.rs +++ b/src/db.rs @@ -250,7 +250,8 @@ impl Db { } pub fn set_ignore(&self, like:&str) { - match self.conn.execute("UPDATE Tracks SET Ignore=1 WHERE File LIKE ?", params![like]) { + log::info!("Ignore: {}", like); + match self.conn.execute(&format!("UPDATE Tracks SET Ignore=1 WHERE File LIKE \"{}%\"", like), []) { Ok(_) => { }, Err(e) => { log::error!("Failed set Ignore column for '{}'. {}", like, e); } }