mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-15 10:19:14 +00:00
Fix windows test failures
This commit is contained in:
@@ -188,7 +188,8 @@ pub fn ensure_tag_path(conn: &Connection, path: &str) -> Result<i64> {
|
||||
}
|
||||
|
||||
pub fn file_id(conn: &Connection, path: &str) -> Result<i64> {
|
||||
conn.query_row("SELECT id FROM files WHERE path = ?1", [path], |r| r.get(0))
|
||||
let path = to_db_path(path);
|
||||
conn.query_row("SELECT id FROM files WHERE path = ?1", [path.clone()], |r| r.get(0))
|
||||
.map_err(|_| anyhow::anyhow!("file not indexed: {}", path))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user