mirror of
https://github.com/CDrummond/bliss-analyser.git
synced 2025-04-08 05:00:02 +03:00
Fix setting of Ignore
This commit is contained in:
parent
87f4af345c
commit
ebf0fb9eb5
@ -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); }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user