Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
74219c632d
commit
ae3e1b6266
@ -113,7 +113,7 @@ postEAutoOccurrenceR tid ssh csh examn = do
|
|||||||
let participants' = Map.fromList $ do
|
let participants' = Map.fromList $ do
|
||||||
(Entity uid userRec, Entity _ ExamRegistration{..}) <- participants
|
(Entity uid userRec, Entity _ ExamRegistration{..}) <- participants
|
||||||
return (uid, (userRec, examRegistrationOccurrence))
|
return (uid, (userRec, examRegistrationOccurrence))
|
||||||
occurrences' = Map.fromList $ map (\(Entity eoId ExamOccurrence{..}) -> (eoId, view (from _examOccurrenceCapacityIso) $ fromIntegral <$> examOccurrenceCapacity)) occurrences
|
occurrences' = Map.fromList $ map (\(Entity eoId ExamOccurrence{..}) -> (eoId, _examOccurrenceCapacityIso # (fromIntegral <$> examOccurrenceCapacity))) occurrences
|
||||||
autoOccurrenceResult = examAutoOccurrence eId examOccurrenceRule eaofConfig occurrences' participants'
|
autoOccurrenceResult = examAutoOccurrence eId examOccurrenceRule eaofConfig occurrences' participants'
|
||||||
(eaofMapping, eaofAssignment) <- case autoOccurrenceResult of
|
(eaofMapping, eaofAssignment) <- case autoOccurrenceResult of
|
||||||
(Left e) -> do
|
(Left e) -> do
|
||||||
|
|||||||
Reference in New Issue
Block a user