filter assessment games with emts for irwin
This commit is contained in:
parent
b11585e8a4
commit
4aa0bca9f7
|
@ -19,7 +19,7 @@ final class JsonView(
|
|||
assessApi.getPlayerAggregateAssessmentWithGames(user.id) flatMap {
|
||||
_ ?? {
|
||||
case PlayerAggregateAssessment.WithGames(pag, games) => for {
|
||||
gamesWithFen <- GameRepo withInitialFens games
|
||||
gamesWithFen <- GameRepo withInitialFens games.filter(_.clockHistory.isDefined)
|
||||
moreGames <- GameRepo.extraGamesForIrwin(user.id, 25) map {
|
||||
_.filter { g => !games.exists(_.id == g.id) } take 20
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue