chore: hlint

This commit is contained in:
Wolfgang Witt 2021-03-01 18:54:33 +01:00 committed by Wolfgang Witt
parent a7671dbec6
commit 163715afc8
2 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ postEAutoOccurrenceR tid ssh csh examn = do
| max' /= 0 = MsgProportion (toMessage curr) (toMessage max') (toRational curr / toRational max')
| otherwise = MsgProportionNoRatio (toMessage curr) (toMessage max')
occMapping occId = examOccurrenceMappingDescriptionWidget occMappingRule <$> (Map.lookup occId $ examOccurrenceMappingMapping $ eaofMapping)
occMapping occId = examOccurrenceMappingDescriptionWidget occMappingRule <$> Map.lookup occId (examOccurrenceMappingMapping eaofMapping)
in $(widgetFile "widgets/exam-occurrence-mapping")
siteLayoutMsg heading $ do

View File

@ -287,8 +287,8 @@ examAutoOccurrence (hash -> seed) rule ExamAutoOccurrenceConfig{..} occurrences
= case rule of
ExamRoomRandom
-> Right ( ExamOccurrenceMapping {
examOccurrenceMappingRule=rule,
examOccurrenceMappingMapping=Map.fromList $ (set _2 $ Set.singleton ExamOccurrenceMappingRandom) <$> occurrences''
examOccurrenceMappingRule = rule,
examOccurrenceMappingMapping = Map.fromList $ set _2 (Set.singleton ExamOccurrenceMappingRandom) <$> occurrences''
}
, Map.union (view _2 <$> assignedUsers) randomlyAssignedUsers
)