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
|
, ''SystemMessageId
|
||||||
, ''SystemMessageTranslationId
|
, ''SystemMessageTranslationId
|
||||||
, ''StudyFeaturesId
|
, ''StudyFeaturesId
|
||||||
|
, ''ExamId
|
||||||
, ''ExamOccurrenceId
|
, ''ExamOccurrenceId
|
||||||
, ''ExamPartId
|
, ''ExamPartId
|
||||||
, ''AllocationId
|
, ''AllocationId
|
||||||
|
|||||||
@ -66,7 +66,7 @@ getECorrectR :: TermId -> SchoolId -> CourseShorthand -> ExamName -> Handler Htm
|
|||||||
getECorrectR tid ssh csh examn = do
|
getECorrectR tid ssh csh examn = do
|
||||||
MsgRenderer mr <- getMsgRenderer
|
MsgRenderer mr <- getMsgRenderer
|
||||||
|
|
||||||
(Entity _ Exam{..}, examParts) <- runDB $ do
|
(Entity eId Exam{..}, examParts) <- runDB $ do
|
||||||
exam@(Entity eId Exam{..}) <- fetchExam tid ssh csh examn
|
exam@(Entity eId Exam{..}) <- fetchExam tid ssh csh examn
|
||||||
examParts <- sortOn (view $ _entityVal . _examPartNumber) <$> selectList [ ExamPartExam ==. eId ] [ Asc ExamPartName ]
|
examParts <- sortOn (view $ _entityVal . _examPartNumber) <$> selectList [ ExamPartExam ==. eId ] [ Asc ExamPartName ]
|
||||||
return (exam, entityVal <$> examParts)
|
return (exam, entityVal <$> examParts)
|
||||||
@ -81,7 +81,7 @@ getECorrectR tid ssh csh examn = do
|
|||||||
|
|
||||||
participantHeadTooltip = [whamlet| _{MsgExamCorrectHeadParticipantTooltip} |]
|
participantHeadTooltip = [whamlet| _{MsgExamCorrectHeadParticipantTooltip} |]
|
||||||
|
|
||||||
examCorrectIdent = intercalate "-" [toPathPiece tid, toPathPiece ssh, toPathPiece csh, toPathPiece examn]
|
examCorrectIdent <- encrypt eId :: Handler CryptoUUIDExam
|
||||||
|
|
||||||
siteLayoutMsg heading $ do
|
siteLayoutMsg heading $ do
|
||||||
setTitleI heading
|
setTitleI heading
|
||||||
|
|||||||
Reference in New Issue
Block a user