sort upcoming tournaments
parent
986b06344f
commit
627e32f74c
|
@ -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,
|
||||
|
|
|
@ -130,6 +130,7 @@ final class TournamentRepo(val coll: Coll, playerCollName: CollName)(implicit
|
|||
)
|
||||
),
|
||||
Match("player" $ne $arr()),
|
||||
Sort(Ascending("startsAt")),
|
||||
Limit(max)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue