fix: hlint
This commit is contained in:
parent
58c933c624
commit
7e14fef5c5
@ -973,7 +973,7 @@ postEUsersR tid ssh csh examn = do
|
|||||||
|
|
||||||
guessUser' :: ExamUserTableCsv -> DB (Bool, UserId)
|
guessUser' :: ExamUserTableCsv -> DB (Bool, UserId)
|
||||||
guessUser' ExamUserTableCsv{..} = do
|
guessUser' ExamUserTableCsv{..} = do
|
||||||
let criteria = PredDNF $ Set.singleton $ impureNonNull $ Set.fromList $ (PLVariable <$>) $ catMaybes $
|
let criteria = PredDNF $ Set.singleton $ impureNonNull $ Set.fromList $ (PLVariable <$>) $ catMaybes
|
||||||
[ GuessUserMatrikelnummer <$> csvEUserMatriculation
|
[ GuessUserMatrikelnummer <$> csvEUserMatriculation
|
||||||
, GuessUserDisplayName <$> csvEUserName
|
, GuessUserDisplayName <$> csvEUserName
|
||||||
, GuessUserSurname <$> csvEUserSurname
|
, GuessUserSurname <$> csvEUserSurname
|
||||||
|
|||||||
@ -81,7 +81,7 @@ postEECorrectR tid ssh coursen examn = do
|
|||||||
, GuessUserSurname (ident :: UserSurname)
|
, GuessUserSurname (ident :: UserSurname)
|
||||||
, GuessUserFirstName (ident :: UserFirstName)
|
, GuessUserFirstName (ident :: UserFirstName)
|
||||||
]
|
]
|
||||||
in (maybe [] (either NonEmpty.toList pure)) <$> lift (guessUser pdnf $ Just $ maxCountUserMatches+1)
|
in maybe [] (either NonEmpty.toList pure) <$> lift (guessUser pdnf $ Just $ maxCountUserMatches+1)
|
||||||
|
|
||||||
if
|
if
|
||||||
| is _Nothing ciqResults, is _Nothing ciqGrade -> do
|
| is _Nothing ciqResults, is _Nothing ciqGrade -> do
|
||||||
|
|||||||
@ -156,7 +156,7 @@ guessUser (((Set.toList . toNullable) <$>) . Set.toList . dnfTerms -> criteria)
|
|||||||
convertLdapResults xs = Just $ Left $ NonEmpty.fromList xs
|
convertLdapResults xs = Just $ Left $ NonEmpty.fromList xs
|
||||||
|
|
||||||
if
|
if
|
||||||
| x : [] <- users'
|
| [x] <- users'
|
||||||
, Just True == matchesMatriculation x || didLdap
|
, Just True == matchesMatriculation x || didLdap
|
||||||
-> return $ Just $ Right x
|
-> return $ Just $ Right x
|
||||||
| x : x' : _ <- users'
|
| x : x' : _ <- users'
|
||||||
|
|||||||
Reference in New Issue
Block a user