Add GPS summary sorting
Run cargo fmt/clippy
This commit is contained in:
@@ -710,8 +710,14 @@ impl ExifDao for SqliteExifDao {
|
||||
let filtered: Vec<(String, f64, f64, Option<i64>)> = results
|
||||
.into_iter()
|
||||
.filter_map(|exif| {
|
||||
if let (Some(lat_val), Some(lon_val)) = (exif.gps_latitude, exif.gps_longitude) {
|
||||
Some((exif.file_path, lat_val as f64, lon_val as f64, exif.date_taken))
|
||||
if let (Some(lat_val), Some(lon_val)) = (exif.gps_latitude, exif.gps_longitude)
|
||||
{
|
||||
Some((
|
||||
exif.file_path,
|
||||
lat_val as f64,
|
||||
lon_val as f64,
|
||||
exif.date_taken,
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user