Merge pull request #5466 from ornicar/api-tournament-id

Expose tournament ID in game API
pull/5467/head
Thibault Duplessis 2019-08-27 08:10:24 +02:00 committed by GitHub
commit 729441eb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ final class GameApiV2(
.add("moves" -> withFlags.moves.option(g.pgnMoves mkString " "))
.add("daysPerTurn" -> g.daysPerTurn)
.add("analysis" -> analysisOption.ifTrue(withFlags.evals).map(analysisJson.moves(_, withGlyph = false)))
.add("tournament" -> g.tournamentId)
.add("clock" -> g.clock.map { clock =>
Json.obj(
"initial" -> clock.limitSeconds,