[chronojump] Fixed Networks 3.1 downloading exercises by station
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed Networks 3.1 downloading exercises by station
- Date: Thu, 10 Mar 2022 18:24:29 +0000 (UTC)
commit 292e979c845c9b6e4abd902aef862953246f99c7
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 10 19:23:56 2022 +0100
Fixed Networks 3.1 downloading exercises by station
src/json/compujump.cs | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/json/compujump.cs b/src/json/compujump.cs
index 497d82067..048d35529 100644
--- a/src/json/compujump.cs
+++ b/src/json/compujump.cs
@@ -351,6 +351,10 @@ public class JsonCompujump : Json
foreach (JsonValue jsonSE in jsonStationExercises)
{
+ /*
+ not needed, as exercises on the json are the related to our station
+ and this code uses machineID, but the list jsonSEStation ["id"] contains logical
instead of physical.
+ so no need to check anything
// 1) discard exercise if is not for this station
JsonValue jsonSEStations = JsonValue.Parse (jsonSE["stations"].ToString());
bool exerciseForThisStation = false;
@@ -363,6 +367,7 @@ public class JsonCompujump : Json
if(! exerciseForThisStation)
continue;
+ */
// 2) discard if is not for this station type
string type = jsonSE ["measurable"];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]