diff --git a/src/models.rs b/src/models.rs index 82bb4bc..7f7ffc0 100644 --- a/src/models.rs +++ b/src/models.rs @@ -61,7 +61,6 @@ impl Photo { newwidth: i32, newheight: i32, exifdate: Option, - exifrotation: i16, camera: &Option, ) -> Result>, DieselError> { use diesel; @@ -86,12 +85,6 @@ impl Photo { .set(date.eq(exifdate)) .get_result::(db)?; } - if exifrotation != pic.rotation { - change = true; - pic = diesel::update(photos.find(pic.id)) - .set(rotation.eq(exifrotation)) - .get_result::(db)?; - } if let Some(ref camera) = *camera { if pic.camera_id != Some(camera.id) { change = true; @@ -128,7 +121,6 @@ impl Photo { newwidth, newheight, exifdate, - exifrotation, &camera, )? { Ok(result)