server: fix type in train type code

This commit is contained in:
Milan Pässler 2020-09-11 19:47:00 +02:00
parent 7ac9fb84a5
commit 3c4a0fc9c8

View file

@ -43,7 +43,7 @@ proc parseLine*(common: CommonData, i: int): Option[Line] =
# DB
if res.productName == "IC" or res.productName == "ICE" or res.productName == "EE" or res.productName == "ECE":
if res.productName == "IC" or res.productName == "ICE" or res.productName == "EC" or res.productName == "ECE":
if trainTypes.contains(res.tripNum) and trainTypes[res.tripNum] != res.productName:
res.trainType = some(trainTypes[res.tripNum])