Skip to content

Commit

Permalink
fix graph output for multi-leg flights
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Oct 26, 2024
1 parent 31ab878 commit cf55b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/api/search/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func buildGraph(parent *common.Flight, conns []Connection, graph *cgraph.Graph,
var ok bool

if node, ok = lookup[conn.Flight]; !ok {
node, err = graph.CreateNodeByName(conn.Flight.Number().String())
node, err = graph.CreateNodeByName(conn.Flight.Id().String())
if err != nil {
return err
}
Expand Down

0 comments on commit cf55b61

Please sign in to comment.