minor
This commit is contained in:
parent
b230ba870d
commit
b98a5c2aa7
@ -174,13 +174,12 @@ getProfileDataR = do
|
|||||||
-- mr <- getMessageRender
|
-- mr <- getMessageRender
|
||||||
|
|
||||||
-- Tabelle mit eigenen Kursen
|
-- Tabelle mit eigenen Kursen
|
||||||
(Any hasRows, ownCourseTable) <- do -- TODO: only display when non-empty
|
(Any hasRows, ownCourseTable) <- do
|
||||||
let withType :: ((E.SqlExpr (Entity Course) `E.InnerJoin` E.SqlExpr (Entity Lecturer)) -> a)
|
let withType :: ((E.SqlExpr (Entity Course) `E.InnerJoin` E.SqlExpr (Entity Lecturer)) -> a)
|
||||||
-> ((E.SqlExpr (Entity Course) `E.InnerJoin` E.SqlExpr (Entity Lecturer)) -> a)
|
-> ((E.SqlExpr (Entity Course) `E.InnerJoin` E.SqlExpr (Entity Lecturer)) -> a)
|
||||||
withType = id
|
withType = id
|
||||||
|
|
||||||
validator = def
|
validator = def & defaultSorting [("term",SortDesc),("school",SortAsc),("course",SortAsc)]
|
||||||
& defaultSorting [("term",SortDesc),("school",SortAsc),("course",SortAsc)]
|
|
||||||
|
|
||||||
dbTableWidget validator $ DBTable
|
dbTableWidget validator $ DBTable
|
||||||
{ dbtIdent = "courseOwnership" :: Text
|
{ dbtIdent = "courseOwnership" :: Text
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user