[chronojump] Fixed repeated forceSensorExercise add on import_from_1_68_to_1_69()
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed repeated forceSensorExercise add on import_from_1_68_to_1_69()
- Date: Mon, 17 Feb 2020 17:37:12 +0000 (UTC)
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]