feature/insights #46

Merged
cameron merged 25 commits from feature/insights into master 2026-01-15 01:07:59 +00:00
Showing only changes of commit 61e10f7678 - Show all commits

View File

@@ -356,8 +356,13 @@ impl ExifDao for SqliteExifDao {
let mut connection = self.connection.lock().expect("Unable to get ExifDao"); let mut connection = self.connection.lock().expect("Unable to get ExifDao");
// Try both normalized (forward slash) and Windows (backslash) paths
// since database may contain either format
let normalized = path.replace('\\', "/");
let windows_path = path.replace('/', "\\");
match image_exif match image_exif
.filter(file_path.eq(path)) .filter(file_path.eq(&normalized).or(file_path.eq(&windows_path)))
.first::<ImageExif>(connection.deref_mut()) .first::<ImageExif>(connection.deref_mut())
{ {
Ok(exif) => Ok(Some(exif)), Ok(exif) => Ok(Some(exif)),