backend/hafas: make productName optional

Some legs do not specify a productName.
This commit is contained in:
Milan Pässler 2020-02-07 16:57:33 +01:00
parent 2358601d89
commit 77d5944aa2
2 changed files with 4 additions and 4 deletions

View file

@ -29,8 +29,8 @@ type
HafasProdCtx* = object
name*: string
num*: string
catOut*: string
catOutL*: string
catOut*: Option[string]
catOutL*: Option[string]
lineId*: Option[string]
HafasProd* = object

View file

@ -83,8 +83,8 @@ type
mode*: Mode
product*: Product
tripNum*: string
productName*: string
fullProductName*: string
productName*: Option[string]
fullProductName*: Option[string]
operator*: Option[Operator]
additionalName*: Option[string]