feat(exam-correct): use examId instead as uw-exam-correct value
This commit is contained in:
parent
4e2810d9bb
commit
2d9a8771ef
@ -43,6 +43,7 @@ decCryptoIDs [ ''SubmissionId
|
||||
, ''SystemMessageId
|
||||
, ''SystemMessageTranslationId
|
||||
, ''StudyFeaturesId
|
||||
, ''ExamId
|
||||
, ''ExamOccurrenceId
|
||||
, ''ExamPartId
|
||||
, ''AllocationId
|
||||
|
||||
@ -66,7 +66,7 @@ getECorrectR :: TermId -> SchoolId -> CourseShorthand -> ExamName -> Handler Htm
|
||||
getECorrectR tid ssh csh examn = do
|
||||
MsgRenderer mr <- getMsgRenderer
|
||||
|
||||
(Entity _ Exam{..}, examParts) <- runDB $ do
|
||||
(Entity eId Exam{..}, examParts) <- runDB $ do
|
||||
exam@(Entity eId Exam{..}) <- fetchExam tid ssh csh examn
|
||||
examParts <- sortOn (view $ _entityVal . _examPartNumber) <$> selectList [ ExamPartExam ==. eId ] [ Asc ExamPartName ]
|
||||
return (exam, entityVal <$> examParts)
|
||||
@ -81,7 +81,7 @@ getECorrectR tid ssh csh examn = do
|
||||
|
||||
participantHeadTooltip = [whamlet| _{MsgExamCorrectHeadParticipantTooltip} |]
|
||||
|
||||
examCorrectIdent = intercalate "-" [toPathPiece tid, toPathPiece ssh, toPathPiece csh, toPathPiece examn]
|
||||
examCorrectIdent <- encrypt eId :: Handler CryptoUUIDExam
|
||||
|
||||
siteLayoutMsg heading $ do
|
||||
setTitleI heading
|
||||
|
||||
Loading…
Reference in New Issue
Block a user