Skip to content

Commit

Permalink
NOJIRA: cast to int (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshverma authored Nov 30, 2023
1 parent b248ef6 commit ecece56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtfs_realtime_translators/translators/swiftly.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __make_trip_updates(cls, data, stop_id):
for destination in data["destinations"]:
# Intersection Extension
headsign = destination.get("headsign")
direction_id = destination.get("directionId", -1)
direction_id = int(destination.get("directionId", -1))
# realtime predictions
predictions = enumerate(destination["predictions"])
for _idx, arrival in predictions:
Expand Down

0 comments on commit ecece56

Please sign in to comment.