Fix order of tests

This commit is contained in:
Filip Gralinski 2018-09-08 21:24:25 +02:00
parent 055687506b
commit 1415133bab

View File

@ -531,7 +531,8 @@ getChallengeAllSubmissionsR name = getChallengeSubmissions (\_ -> True) name
getChallengeSubmissions :: ((Entity Submission) -> Bool) -> Text -> Handler Html
getChallengeSubmissions condition name = do
Entity challengeId challenge <- runDB $ getBy404 $ UniqueName name
(evaluationMaps, tests) <- getChallengeSubmissionInfos condition challengeId
(evaluationMaps, tests') <- getChallengeSubmissionInfos condition challengeId
let tests = sortBy testComparator tests'
mauth <- maybeAuth
let muserId = (\(Entity uid _) -> uid) <$> mauth