[chronojump] Networks django Fix for upload sprint k
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Networks django Fix for upload sprint k
- Date: Fri, 21 Jun 2019 11:09:05 +0000 (UTC)
commit accae2bedfb6ec9e1912f186008a15304741363d
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jun 21 13:08:48 2019 +0200
Networks django Fix for upload sprint k
src/json/compujump.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/json/compujump.cs b/src/json/compujump.cs
index 3043c51d..869c5c59 100644
--- a/src/json/compujump.cs
+++ b/src/json/compujump.cs
@@ -544,16 +544,16 @@ public class JsonCompujump : Json
else
json.Add("t4", "");
- json.Add("k", o.k);
-
//at django upload this as strings with '.' as decimal separator
if(django)
{
+ json.Add("k", Util.ConvertToPoint(o.k));
json.Add("vmax", Util.ConvertToPoint(o.vmax));
json.Add("amax", Util.ConvertToPoint(o.amax));
json.Add("fmax", Util.ConvertToPoint(o.fmax));
json.Add("pmax", Util.ConvertToPoint(o.pmax));
} else {
+ json.Add("k", o.k);
json.Add("vmax", o.vmax);
json.Add("amax", o.amax);
json.Add("fmax", o.fmax);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]