forked from third-party-mirrors/bliss-analyser
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