remove unknown finish from searchable game results

pull/2661/head
Thibault Duplessis 2017-02-12 12:53:30 +01:00
parent 464ba05e85
commit ac4457b5fc
1 changed files with 6 additions and 5 deletions

View File

@ -106,10 +106,11 @@ object Query {
options(1 to 5, "y", "%d year{s} ago")
val statuses = Status.finishedNotCheated.map {
case s if s.is(_.Timeout) => none
case s if s.is(_.NoStart) => none
case s if s.is(_.Outoftime) => Some(s.id -> "Clock Flag")
case s if s.is(_.VariantEnd) => Some(s.id -> "Variant End")
case s => Some(s.id -> s.toString)
case s if s.is(_.Timeout) => none
case s if s.is(_.NoStart) => none
case s if s.is(_.UnknownFinish) => none
case s if s.is(_.Outoftime) => Some(s.id -> "Clock Flag")
case s if s.is(_.VariantEnd) => Some(s.id -> "Variant End")
case s => Some(s.id -> s.toString)
}.flatten
}