commit 584e952ca4c809a612b38216fc34d3886633525f
parent 30cbccd5f5f4100d6b863a9fb9b1c014a055efff
Author: Isabelle K <hi@f2k1.de>
Date: Thu, 18 Feb 2021 20:13:58 +0100
parent 30cbccd5f5f4100d6b863a9fb9b1c014a055efff
Author: Isabelle K <hi@f2k1.de>
Date: Thu, 18 Feb 2021 20:13:58 +0100
show footpath on overview if there is one
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/formaters/renderJourneys.nim b/src/formaters/renderJourneys.nim @@ -66,7 +66,10 @@ proc renderJourneys*(data: CacheObject): JsonNode = if leg.cancelled != false: cancelled = true - if leg.isWalking: continue + if leg.isWalking: + products["Fußweg"] = newSeq[string]() + continue + if leg.isTransfer: continue inc(changes) @@ -102,5 +105,6 @@ proc renderJourneys*(data: CacheObject): JsonNode = "CHANGES_DUR": changesDuration, "CHANGES": changes-1, "PRODUCTS": productsString, - "IS_CANCELLED": cancelled + "IS_CANCELLED": cancelled, + "IS_WALKING": isWalking })