Skip to content

Commit

Permalink
gtfs: fix bug with trips with block_id being written 2x
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jul 22, 2022
1 parent 9232a9b commit 48aba4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/loader/src/gtfs/gtfs_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ void gtfs_parser::parse(fs::path const& root, fbs64::FlatBufferBuilder& fbb) {
}
return stop_count < 2;
}) //
| utl::remove_if([&](auto const& entry) {
// Rule services are written separately.
return entry.second->block_ != nullptr;
}) //
| utl::transform([&](auto const& entry) {
auto const t = entry.second.get();
return create_service(
Expand Down

0 comments on commit 48aba4c

Please # to comment.