ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit 77d5944aa2e7d575a7f244460f27cc53a5fb7c24
parent 2358601d89af5e95b033698162c411e97220122a
Author: Milan Pässler <me@pbb.lc>
Date: Fri, 7 Feb 2020 16:57:33 +0100

backend/hafas: make productName optional

Some legs do not specify a productName.
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/hafas/types.nim b/src/backend/hafas/types.nim
@@ -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
diff --git a/src/types.nim b/src/types.nim
@@ -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]