I h8 hlint
This commit is contained in:
parent
8dae9eb1d4
commit
d9b11bc9a4
@ -636,8 +636,8 @@ userTableQuery :: UserTableWhere -> UserTableExpr
|
|||||||
, E.SqlExpr (E.Value UTCTime)
|
, E.SqlExpr (E.Value UTCTime)
|
||||||
, E.SqlExpr (E.Value (Maybe CourseUserNoteId)))
|
, E.SqlExpr (E.Value (Maybe CourseUserNoteId)))
|
||||||
userTableQuery whereClause t@((user `E.InnerJoin` participant) `E.LeftOuterJoin` note) = do
|
userTableQuery whereClause t@((user `E.InnerJoin` participant) `E.LeftOuterJoin` note) = do
|
||||||
E.on $ (E.just $ participant E.^. CourseParticipantUser) E.==. note E.?. CourseUserNoteUser
|
E.on $ E.just (participant E.^. CourseParticipantUser) E.==. note E.?. CourseUserNoteUser
|
||||||
E.on $ participant E.^. CourseParticipantUser E.==. user E.^. UserId
|
E.on $ participant E.^. CourseParticipantUser E.==. user E.^. UserId
|
||||||
E.where_ $ whereClause t
|
E.where_ $ whereClause t
|
||||||
return (user, participant E.^. CourseParticipantRegistration, note E.?. CourseUserNoteId)
|
return (user, participant E.^. CourseParticipantRegistration, note E.?. CourseUserNoteId)
|
||||||
|
|
||||||
@ -687,7 +687,7 @@ makeCourseUserTable whereClause colChoices psValidator =
|
|||||||
let dbtIdent = "courseUsers" :: Text
|
let dbtIdent = "courseUsers" :: Text
|
||||||
dbtStyle = def
|
dbtStyle = def
|
||||||
dbtSQLQuery = userTableQuery whereClause
|
dbtSQLQuery = userTableQuery whereClause
|
||||||
dbtRowKey = (\((user `E.InnerJoin` _participant) `E.LeftOuterJoin` _note) -> user E.^. UserId)
|
dbtRowKey ((user `E.InnerJoin` _participant) `E.LeftOuterJoin` _note) = user E.^. UserId
|
||||||
dbtProj = return -- . dbrOutput -- NOT SURE
|
dbtProj = return -- . dbrOutput -- NOT SURE
|
||||||
dbtColonnade = colChoices
|
dbtColonnade = colChoices
|
||||||
dbtSorting = Map.fromList [] -- TODO
|
dbtSorting = Map.fromList [] -- TODO
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user