[niepce] engine: Fix mismatch property/column in Library::set_metadata



commit 704b6aff3523d92dc86ccaa63d072326e047c6b7
Author: Hubert Figuière <hub figuiere net>
Date:   Sun Jan 26 01:34:51 2020 -0500

    engine: Fix mismatch property/column in Library::set_metadata
    
    - this caused the label to not be stored properly in the DB

 crates/npc-engine/src/db/library.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/crates/npc-engine/src/db/library.rs b/crates/npc-engine/src/db/library.rs
index 89856a4..8a46f4d 100644
--- a/crates/npc-engine/src/db/library.rs
+++ b/crates/npc-engine/src/db/library.rs
@@ -887,8 +887,8 @@ impl Library {
                         // make the column mapping more generic.
                         let column = match meta {
                             eng::NpXmpRatingProp => "rating",
-                            eng::NpXmpLabelProp => "orientation",
-                            eng::NpTiffOrientationProp => "label",
+                            eng::NpXmpLabelProp => "label",
+                            eng::NpTiffOrientationProp => "orientation",
                             eng::NpNiepceFlagProp => "flag",
                             _ => unreachable!(),
                         };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]