lichess-org / api

Lichess API documentation and examples
https://lichess.org/api
GNU Affero General Public License v3.0
414 stars 140 forks source link

Evals are not always included by default for game exports #285

Closed allanjoseph98 closed 9 months ago

allanjoseph98 commented 9 months ago

Affects multi-game exports where requestPgnFlags is called with extended = false for the following endpoints:

  1. /api/games/user/{username} https://github.com/lichess-org/lila/blob/b82aaf55327f5c142375b50581b3761949eea7d4/app/controllers/Game.scala#L74
  2. /api/games/export/_ids https://github.com/lichess-org/lila/blob/b82aaf55327f5c142375b50581b3761949eea7d4/app/controllers/Game.scala#L123
  3. /api/tournament/{id}/games https://github.com/lichess-org/lila/blob/b82aaf55327f5c142375b50581b3761949eea7d4/app/controllers/Api.scala#L193
  4. /api/swiss/{id}/games https://github.com/lichess-org/lila/blob/b82aaf55327f5c142375b50581b3761949eea7d4/app/controllers/Api.scala#L250

Default values for the other extended opts (clock and opening) are already correct