commit c62d84d9b158a554a31fc7db553e676771150f82
parent 584e952ca4c809a612b38216fc34d3886633525f
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Feb 2021 22:40:53 +0100
parent 584e952ca4c809a612b38216fc34d3886633525f
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Feb 2021 22:40:53 +0100
hafasBackend: fix transfer type
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/hafas/parse/leg.nim b/src/backend/hafas/parse/leg.nim @@ -48,11 +48,11 @@ proc mkParseLeg*(common: CommonData): proc = if remarks.len > 0: result.remarks = some(remarks.map(mkParseMsg(common))) - elif typeStr == "WALK" or typeStr == "TRSF": + elif typeStr == "WALK": result.isWalking = true result.distance = some(l{"gis"}{"dist"}.getInt()) - elif typeStr == "DEVI": + elif typeStr == "TRSF" or typeStr == "DEVI": result.isTransfer = true else: