[chronojump/michrolab] Networks jumps weightInKg is uploaded



commit fe9a5caab21ed66344833360d8f89ee8a53d5518
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Sep 1 11:10:31 2022 +0200

    Networks jumps weightInKg is uploaded

 src/json/compujump.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/json/compujump.cs b/src/json/compujump.cs
index 4853c0b52..baaf4b55b 100644
--- a/src/json/compujump.cs
+++ b/src/json/compujump.cs
@@ -424,13 +424,13 @@ public class JsonCompujump : Json
                json.Add("station_id", o.stationId);
                json.Add("exercise_id", o.ExerciseIdStr);
                json.Add("comment", "");
+               json.Add("extra_weight", o.WeightInKg);
                if (m == Constants.Modes.JUMPSSIMPLE)
                {
                        json.Add("player_id", o.jump.PersonID);
                        json.Add("multiple", 0);
                        json.Add("contact_time", Util.ConvertToPoint (o.jump.Tc));
                        json.Add("flight_time", Util.ConvertToPoint (o.jump.Tv));
-                       json.Add("extra_weight", Util.ConvertToPoint (o.jump.Weight));
                        json.Add("fall", Util.ConvertToPoint (o.jump.Fall));
                } else // if (m == Constants.Modes.JUMPSREACTIVE)
                {
@@ -438,7 +438,6 @@ public class JsonCompujump : Json
                        json.Add("multiple", 1);
                        json.Add("contact_time", Util.ConvertToPoint (o.jumpRj.TcAvg));
                        json.Add("flight_time", Util.ConvertToPoint (o.jumpRj.TvAvg));
-                       json.Add("extra_weight", Util.ConvertToPoint (o.jumpRj.Weight));
                        json.Add("fall", Util.ConvertToPoint (o.jumpRj.Fall));
                }
                json.Add("power", o.PowerStr);


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