This commit is contained in:
SJost 2018-09-11 17:02:55 +02:00
parent b230ba870d
commit b98a5c2aa7

View File

@ -174,13 +174,12 @@ getProfileDataR = do
-- mr <- getMessageRender
-- 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)
-> ((E.SqlExpr (Entity Course) `E.InnerJoin` E.SqlExpr (Entity Lecturer)) -> a)
withType = id
validator = def
& defaultSorting [("term",SortDesc),("school",SortAsc),("course",SortAsc)]
validator = def & defaultSorting [("term",SortDesc),("school",SortAsc),("course",SortAsc)]
dbTableWidget validator $ DBTable
{ dbtIdent = "courseOwnership" :: Text