[chronojump] Fixed repeated forceSensorExercise add on import_from_1_68_to_1_69()



commit ccfdc9507b1e3da9c29b19a525756330d14d1856
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 17 18:35:04 2020 +0100

    Fixed repeated forceSensorExercise add on import_from_1_68_to_1_69()

 src/sqlite/forceSensor.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sqlite/forceSensor.cs b/src/sqlite/forceSensor.cs
index eac049c9..d4b290d8 100644
--- a/src/sqlite/forceSensor.cs
+++ b/src/sqlite/forceSensor.cs
@@ -273,7 +273,7 @@ class SqliteForceSensor : Sqlite
         */
        protected internal static void import_from_1_68_to_1_69() //database is opened
        {
-               //LogB.PrintAllThreads = true; //TODO: remove this
+               //LogB.PrintAllThreads = true; //comment this
                LogB.Information("at import_from_1_68_to_1_69()");
 
                string forceSensorDir = Util.GetForceSensorDir();
@@ -366,7 +366,7 @@ class SqliteForceSensor : Sqlite
                                        fslt.Comment = file.Name;
                                }
 
-                               if(fslt.Exercise != "")
+                               if(fslt.Exercise != "" && exerciseID == -1)
                                {
                                        ForceSensorExercise fse = new ForceSensorExercise (-1, fslt.Exercise, 
0, "", 0, "", false, false, false);
                                        //note we are on 1_68 so we need this import method


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