Skip to content

Commit

Permalink
hotfix: handle Logan Express route
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Apr 30, 2024
1 parent 38b4274 commit 4920fe6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/dotcom_web/views/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ defmodule DotcomWeb.ViewHelpers do
def mode_name(type) when type in [2, :commuter_rail], do: "Commuter Rail"
def mode_name(type) when type in [3, :bus], do: "Bus"
def mode_name(type) when type in [4, :ferry], do: "Ferry"
def mode_name(type) when type in ["2274", "909", :logan_express], do: "Logan Express"

def mode_name(type) when type in ["2274", "909", :logan_express, "Logan Express"],
do: "Logan Express"

def mode_name(type) when type in ["2272", "983", :massport_shuttle],
do: "Massport Shuttle"
Expand Down
1 change: 1 addition & 0 deletions lib/routes/route.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ defmodule Routes.Route do
def type_atom("subway"), do: :subway
def type_atom("bus"), do: :bus
def type_atom("ferry"), do: :ferry
def type_atom("Logan Express"), do: :logan_express
def type_atom("909"), do: :logan_express
def type_atom("2274"), do: :logan_express
def type_atom("983"), do: :massport_shuttle
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"nimble_ownership": {:hex, :nimble_ownership, "0.3.1", "99d5244672fafdfac89bfad3d3ab8f0d367603ce1dc4855f86a1c75008bce56f", [:mix], [], "hexpm", "4bf510adedff0449a1d6e200e43e57a814794c8b5b6439071274d248d272a549"},
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
"nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"},
"open_trip_planner_client": {:git, "https://github.com/thecristen/open_trip_planner_client.git", "6216511947bd48ddb7d7cc6d80c1876232572c3f", [ref: "v0.8.0"]},
"open_trip_planner_client": {:git, "https://github.com/thecristen/open_trip_planner_client.git", "bac452739c732ceebab0762e10bd362a88417a4a", [ref: "v0.8.1"]},
"parallel_stream": {:hex, :parallel_stream, "1.1.0", "f52f73eb344bc22de335992377413138405796e0d0ad99d995d9977ac29f1ca9", [:mix], [], "hexpm", "684fd19191aedfaf387bbabbeb8ff3c752f0220c8112eb907d797f4592d6e871"},
"parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"},
"phoenix": {:hex, :phoenix, "1.6.16", "e5bdd18c7a06da5852a25c7befb72246de4ddc289182285f8685a40b7b5f5451", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 1.0 or ~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:plug, "~> 1.10", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.2", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "e15989ff34f670a96b95ef6d1d25bad0d9c50df5df40b671d8f4a669e050ac39"},
Expand Down

0 comments on commit 4920fe6

Please sign in to comment.