Skip to content

Commit

Permalink
fi siri_rides to return results even if there isn't related gtfs data…
Browse files Browse the repository at this point in the history
… (change to outerjoin)
  • Loading branch information
OriHoch committed May 25, 2024
1 parent 46feea4 commit a8352e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open_bus_stride_api/routers/siri_rides.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def _post_session_query_hook(session_query: sqlalchemy.orm.Query):
return (
session_query
.join(model.SiriRoute, model.SiriRide.siri_route_id == model.SiriRoute.id)
.join(model.GtfsRide, model.SiriRide.gtfs_ride_id == model.GtfsRide.id)
.join(model.GtfsRoute, model.GtfsRide.gtfs_route_id == model.GtfsRoute.id)
.outerjoin(model.GtfsRide, model.SiriRide.gtfs_ride_id == model.GtfsRide.id)
.outerjoin(model.GtfsRoute, model.GtfsRide.gtfs_route_id == model.GtfsRoute.id)
)


Expand Down

0 comments on commit a8352e4

Please sign in to comment.