refactor: hlint
This commit is contained in:
parent
3bf37a4c1a
commit
b222ceb40e
@ -231,7 +231,7 @@ postAdminFeaturesR = do
|
||||
forM_ schools $ \ssh -> void . insertUnique $ SchoolTerms ssh studyTermsKey
|
||||
deleteWhere [SchoolTermsTerms ==. studyTermsKey, SchoolTermsSchool /<-. Set.toList schools, SchoolTermsSchool <-. toListOf (folded . _entityKey) userSchools]
|
||||
|
||||
forM_ parents $ void . insertUnique . StudySubTerms studyTermsKey
|
||||
forM_ parents $ insertUnique . StudySubTerms studyTermsKey
|
||||
deleteWhere [StudySubTermsChild ==. studyTermsKey, StudySubTermsParent /<-. Set.toList parents]
|
||||
formResult studyTermsResult' $ \res -> do
|
||||
void . runDB $ Map.traverseWithKey updateStudyTerms res
|
||||
@ -366,7 +366,7 @@ postAdminFeaturesR = do
|
||||
E.where_ $ subTerms E.^. StudySubTermsChild E.==. E.val fId
|
||||
E.&&. subTerms E.^. StudySubTermsParent E.==. terms E.^. StudyTermsId
|
||||
return terms
|
||||
return $ field & _dbrOutput %~ (\field' -> (field', fieldParents, fieldSchools))
|
||||
return $ field & _dbrOutput %~ (, fieldParents, fieldSchools)
|
||||
dbtColonnade = formColonnade $ mconcat
|
||||
[ sortable (Just "key") (i18nCell MsgGenericKey) (maybe mempty numCell . preview (_dbrOutput . _1 . _entityVal . _studyTermsKey))
|
||||
, sortable Nothing (i18nCell MsgStudySubTermsParentKey) (parentsCell _4 (_dbrOutput . _2 . to (Set.map entityKey)) _dbrKey')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user