forked from filipg/gonito
Bring back desc for boolean values
This commit is contained in:
parent
c9b8f65958
commit
e323eb6bea
@ -408,7 +408,7 @@ getScore testId variantId = do
|
|||||||
E.&&. (evaluation ^. EvaluationVersion E.==. E.just (submission ^. SubmissionVersion)
|
E.&&. (evaluation ^. EvaluationVersion E.==. E.just (submission ^. SubmissionVersion)
|
||||||
E.||. E.isNothing (evaluation ^. EvaluationVersion))
|
E.||. E.isNothing (evaluation ^. EvaluationVersion))
|
||||||
E.&&. evaluation ^. EvaluationTest E.==. E.val testId)
|
E.&&. evaluation ^. EvaluationTest E.==. E.val testId)
|
||||||
E.orderBy [E.asc (E.isNothing (evaluation ^. EvaluationVersion))]
|
E.orderBy [E.desc (E.isNothing (evaluation ^. EvaluationVersion))]
|
||||||
return evaluation
|
return evaluation
|
||||||
return $ case evaluations of
|
return $ case evaluations of
|
||||||
(e:_) -> evaluationScore $ entityVal e
|
(e:_) -> evaluationScore $ entityVal e
|
||||||
|
@ -61,7 +61,7 @@ processVariant dbName (variant, Entity _ submission, Entity _ out, Entity testId
|
|||||||
E.&&. (evaluation ^. EvaluationVersion E.==. E.just (E.val (submissionVersion submission))
|
E.&&. (evaluation ^. EvaluationVersion E.==. E.just (E.val (submissionVersion submission))
|
||||||
E.||. E.isNothing (evaluation ^. EvaluationVersion))
|
E.||. E.isNothing (evaluation ^. EvaluationVersion))
|
||||||
E.&&. evaluation ^. EvaluationTest E.==. E.val testId)
|
E.&&. evaluation ^. EvaluationTest E.==. E.val testId)
|
||||||
E.orderBy [E.asc (E.isNothing (evaluation ^. EvaluationVersion))]
|
E.orderBy [E.desc (E.isNothing (evaluation ^. EvaluationVersion))]
|
||||||
return evaluation
|
return evaluation
|
||||||
|
|
||||||
case evaluations of
|
case evaluations of
|
||||||
|
Loading…
Reference in New Issue
Block a user