[chronojump] load set shows correctly sets on iso/elastic. Fixed since recent commits.
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] load set shows correctly sets on iso/elastic. Fixed since recent commits.
- Date: Mon, 30 May 2022 15:49:06 +0000 (UTC)
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]