aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-02-18 22:40:53 +0100
committerLeah (ctucx) <leah@ctu.cx>2021-02-18 22:40:53 +0100
commitc62d84d9b158a554a31fc7db553e676771150f82 (patch)
tree22f53ab67e8c0ed21072ef9ca19ae41e5f19f720
parent584e952ca4c809a612b38216fc34d3886633525f (diff)
downloadoeffi-web-c62d84d9b158a554a31fc7db553e676771150f82.tar.gz
oeffi-web-c62d84d9b158a554a31fc7db553e676771150f82.tar.bz2
oeffi-web-c62d84d9b158a554a31fc7db553e676771150f82.zip
hafasBackend: fix transfer type
-rw-r--r--src/backend/hafas/parse/leg.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/hafas/parse/leg.nim b/src/backend/hafas/parse/leg.nim
index 230d718..2a966eb 100644
--- 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: