Skip to content

Commit

Permalink
Merge pull request #184 from Carbrex/patch-1-lila-14299
Browse files Browse the repository at this point in the history
Fixes Variant: Standard not working on /games/search
  • Loading branch information
ornicar authored Mar 16, 2024
2 parents c60684c + 978a19e commit a92df91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/game.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ case class Query(
winner: Option[String] = None,
loser: Option[String] = None,
winnerColor: Option[Int] = None,
perf: Option[Int] = None,
perf: List[Int] = List.empty,
source: Option[Int] = None,
status: Option[Int] = None,
turns: Range[Int] = Range.none,
Expand Down Expand Up @@ -98,7 +98,7 @@ case class Query(
date map Date.formatter.print queries Fields.date,
hasAiQueries,
(hasAi | true).fold(aiLevel queries Fields.ai, Nil),
toQueries(perf, Fields.perf),
if (perf.nonEmpty) List(termsQuery(Fields.perf, perf)) else Nil,
toQueries(source, Fields.source),
toQueries(rated, Fields.rated),
toQueries(status, Fields.status),
Expand Down

0 comments on commit a92df91

Please sign in to comment.