[chronojump] Fixed bug: removing forceSensor, runEncoder data of all persons in session when removing a person
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bug: removing forceSensor, runEncoder data of all persons in session when removing a person
- Date: Thu, 4 Mar 2021 18:03:19 +0000 (UTC)
commit d3ef85be83b783d1e239badd80ac39001c26f606
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 4 19:00:31 2021 +0100
Fixed bug: removing forceSensor,runEncoder data of all persons in session when removing a person
src/sqlite/personSession.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sqlite/personSession.cs b/src/sqlite/personSession.cs
index f29dd29d..8dc4a957 100644
--- a/src/sqlite/personSession.cs
+++ b/src/sqlite/personSession.cs
@@ -505,7 +505,7 @@ class SqlitePersonSession : Sqlite
}
// 5) delete forceSensor and related triggers
- List<ForceSensor> fs_l = SqliteForceSensor.Select (true, -1, -1, Convert.ToInt32(sessionID));
+ List<ForceSensor> fs_l = SqliteForceSensor.Select (true, -1, Convert.ToInt32(personID),
Convert.ToInt32(sessionID));
foreach(ForceSensor fs in fs_l)
{
SqliteForceSensor.DeleteSQLAndFiles (true, fs); //deletes also the .csv
@@ -515,7 +515,7 @@ class SqlitePersonSession : Sqlite
}
// 6) delete runEncoder and related triggers
- List<RunEncoder> re_l = SqliteRunEncoder.Select (true, -1, -1, Convert.ToInt32(sessionID));
+ List<RunEncoder> re_l = SqliteRunEncoder.Select (true, -1, Convert.ToInt32(personID),
Convert.ToInt32(sessionID));
foreach(RunEncoder re in re_l)
{
SqliteRunEncoder.DeleteSQLAndFiles (true, re); //deletes also the .csv
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]