sort upcoming tournaments

ts-4.1.x
Thibault Duplessis 2020-12-28 18:28:37 +01:00
parent 986b06344f
commit 627e32f74c
2 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,6 @@ import controllers.routes
object upcoming {
private val path = "upcoming"
def apply(u: User, pager: Paginator[lila.tournament.Tournament])(implicit ctx: Context) =
bits.layout(
u = u,

View File

@ -130,6 +130,7 @@ final class TournamentRepo(val coll: Coll, playerCollName: CollName)(implicit
)
),
Match("player" $ne $arr()),
Sort(Ascending("startsAt")),
Limit(max)
)
}