Merge with exercises and getCurrentRoute
This commit is contained in:
parent
5cf1840f09
commit
4383f46409
@ -29,7 +29,7 @@ getCourseListR = redirect TermShowR
|
||||
|
||||
getTermCurrentR :: Handler Html
|
||||
getTermCurrentR = do
|
||||
termIds <- runDB $ selectKeysList [TermActive ==. True] []
|
||||
termIds <- runDB $ selectKeysList [TermActive ==. True] [] -- [Desc TermName] does not work, since database representation has wrong ordering
|
||||
case fromNullable termIds of
|
||||
Nothing -> notFound
|
||||
(Just (maximum -> tid)) -> getTermCourseListR tid
|
||||
|
||||
Loading…
Reference in New Issue
Block a user