Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/dotcom_web/controllers/schedule/timetable_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ defmodule DotcomWeb.ScheduleController.TimetableController do
@route_patterns_repo Application.compile_env!(:dotcom, :repo_modules)[:route_patterns]
@stops_repo Application.compile_env!(:dotcom, :repo_modules)[:stops]

@routes_repo Application.compile_env!(:dotcom, :repo_modules)[:routes]

plug(DotcomWeb.Plugs.Route)
plug(DotcomWeb.Plugs.DateInRating)
plug(:tab_name)
Expand Down Expand Up @@ -131,7 +129,7 @@ defmodule DotcomWeb.ScheduleController.TimetableController do
~D[2026-07-09]
] and
route.id == "CR-Franklin" do
shuttle_route = @routes_repo.get("Shuttle-CantonJunctionForgePark")
shuttle_route = %Route{id: "Shuttle-CantonJunctionForgePark", type: 3}

shuttle_schedules =
timetable_schedules(%{
Expand Down Expand Up @@ -250,7 +248,7 @@ defmodule DotcomWeb.ScheduleController.TimetableController do
} = conn
)
when route.id == "CR-Providence" do
shuttle_route = @routes_repo.get("Shuttle-CantonJunctionStoughton")
shuttle_route = %Route{id: "Shuttle-CantonJunctionStoughton", type: 3}
Comment thread
thecristen marked this conversation as resolved.

shuttle_schedules =
timetable_schedules(%{
Expand Down
Loading