Skip to content

Commit

Permalink
TRAN-5521 : Use "gtfs_route_id" instead of "route"
Browse files Browse the repository at this point in the history
  • Loading branch information
Manan committed Sep 9, 2021
1 parent 516467e commit 47db1d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gtfs_realtime_translators/translators/njt_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __make_trip_updates(cls, data, filtered_stops):
# Intersection Extensions
headsign = item_entry['busheader']
trip_id = item_entry['gtfs_trip_id']
route_id = item_entry['route']
route_id = item_entry['gtfs_route_id']
if item_entry.get('STOP', None) is not None:
stops = item_entry['STOP']

Expand Down
2 changes: 1 addition & 1 deletion test/test_njt_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_njt_data(njt_bus):

assert message.header.gtfs_realtime_version == FeedMessage.VERSION
assert entity.id == '1'
assert trip_update.trip.route_id == '64J'
assert trip_update.trip.route_id == '165'
assert trip_update.trip.trip_id == '22899'

assert stop_time_update.stop_id == '2916'
Expand Down

0 comments on commit 47db1d6

Please sign in to comment.