[chronojump] load set shows correctly sets on iso/elastic. Fixed since recent commits.



commit 590f7d16ef5f653c804a7ea2f02270c63471e5b0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon May 30 17:48:29 2022 +0200

    load set shows correctly sets on iso/elastic. Fixed since recent commits.

 src/sqlite/forceSensor.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/sqlite/forceSensor.cs b/src/sqlite/forceSensor.cs
index 11e1af839..e76bcd8bd 100644
--- a/src/sqlite/forceSensor.cs
+++ b/src/sqlite/forceSensor.cs
@@ -157,8 +157,10 @@ class SqliteForceSensor : Sqlite
                        sessionIDStr = " AND " + table + ".sessionID = " + sessionID;
 
                string elasticStr = "";
-               if(elastic != -1)
-                       elasticStr = " AND " + table + ".stiffness >= " + 0;
+               if (elastic == 0)
+                       elasticStr = " AND " + table + ".stiffness < 0"; //isometric has stiffness -1.0
+               else if (elastic == 1)
+                       elasticStr = " AND " + table + ".stiffness > 0"; //elastic has stiffness > 0
 
                dbcmd.CommandText = selectStr + whereStr + uniqueIDStr + personIDStr + sessionIDStr + 
elasticStr +
                        " Order BY " + table + ".uniqueID";


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