refactor: hlint
This commit is contained in:
parent
a91fd7fd63
commit
e2c664d7d4
@ -103,9 +103,7 @@ postEAutoOccurrenceR tid ssh csh examn = do
|
|||||||
nudgeRes <- sequence . flip Map.fromSet (setOf (folded . _entityKey) occurrences) $ \occId ->
|
nudgeRes <- sequence . flip Map.fromSet (setOf (folded . _entityKey) occurrences) $ \occId ->
|
||||||
runFormPost $ examAutoOccurrenceNudgeForm occId (formResult' calculateRes)
|
runFormPost $ examAutoOccurrenceNudgeForm occId (formResult' calculateRes)
|
||||||
|
|
||||||
let calculateRes' = asum $
|
let calculateRes' = asum $ calculateRes : nudgeRes ^.. folded . _1 . _1
|
||||||
[ calculateRes
|
|
||||||
] ++ toListOf (folded . _1 . _1) nudgeRes
|
|
||||||
|
|
||||||
calcResult <- formResultMaybe calculateRes' $ \ExamAutoOccurrenceCalculateForm{..} -> runDB $ do
|
calcResult <- formResultMaybe calculateRes' $ \ExamAutoOccurrenceCalculateForm{..} -> runDB $ do
|
||||||
participants <- E.select . E.from $ \(registration `E.InnerJoin` user) -> do
|
participants <- E.select . E.from $ \(registration `E.InnerJoin` user) -> do
|
||||||
|
|||||||
Reference in New Issue
Block a user