Skip to content

Commit

Permalink
actually use isllm lol
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronClaydon committed Dec 13, 2024
1 parent bff814f commit eebf9de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/api/routes/stops.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func listStops(c *fiber.Ctx) error {

func getStop(c *fiber.Ctx) error {
identifier := c.Params("identifier")
isLLM := c.Query("isllm")
isLLM := strings.ToLower(c.Query("isllm"))

var stop *ctdf.Stop
stop, err := dataaggregator.Lookup[*ctdf.Stop](query.Stop{
Expand Down Expand Up @@ -141,7 +141,7 @@ func getStopDepartures(c *fiber.Ctx) error {
stopIdentifier := c.Params("identifier")
count, err := strconv.Atoi(c.Query("count", "25"))
startDateTimeString := c.Query("datetime")
isLLM := c.Query("isllm")
isLLM := strings.ToLower(c.Query("isllm"))

if err != nil {
c.SendStatus(fiber.StatusBadRequest)
Expand Down Expand Up @@ -230,7 +230,7 @@ func getStopDepartures(c *fiber.Ctx) error {
func searchStops(c *fiber.Ctx) error {
searchTerm := c.Query("name")
transportType := c.Query("transporttype")
isLLM := c.Query("isllm")
isLLM := strings.ToLower(c.Query("isllm"))

if searchTerm == "" {
c.SendStatus(fiber.StatusBadRequest)
Expand Down

0 comments on commit eebf9de

Please sign in to comment.