Skip to content

Commit

Permalink
add next page to the dcr football data
Browse files Browse the repository at this point in the history
  • Loading branch information
marjisound committed Dec 20, 2024
1 parent 23e9b59 commit 7998a82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions sport/app/football/controllers/MatchListController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ trait MatchListController extends BaseController with Requests {
pageTitle = matchesList.getPageTitle(Edition(request)),
pageType = matchesList.pageType,
matchesList = DotcomRenderingFootballDataModel.getMatchesList(matchesList.matchesGroupedByDateAndCompetition),
nextPage = matchesList.nextPage,
)

JsonComponent.fromWritable(model)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package football.model

import model.{Competition, CompetitionSummary}
import model.dotcomrendering.DotcomRenderingUtils.withoutNull
import model.{Competition, CompetitionSummary}
import pa.{
Fixture,
FootballMatch,
Expand All @@ -18,7 +18,7 @@ import pa.{
Venue,
Competition => PaCompetition,
}
import play.api.libs.json.{JsObject, JsString, JsValue, Json, Writes}
import play.api.libs.json._

import java.time.LocalDate
import java.time.format.DateTimeFormatter
Expand All @@ -30,6 +30,7 @@ case class DotcomRenderingFootballDataModel(
pageTitle: String,
pageType: String,
matchesList: Seq[MatchesByDateAndCompetition],
nextPage: Option[String],
)

object DotcomRenderingFootballDataModel {
Expand Down

0 comments on commit 7998a82

Please sign in to comment.