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 :: Handler Html
|
||||||
getTermCurrentR = do
|
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
|
case fromNullable termIds of
|
||||||
Nothing -> notFound
|
Nothing -> notFound
|
||||||
(Just (maximum -> tid)) -> getTermCourseListR tid
|
(Just (maximum -> tid)) -> getTermCourseListR tid
|
||||||
|
|||||||
Reference in New Issue
Block a user