Minor bugfix sheetCurrent

This commit is contained in:
SJost 2019-01-30 11:27:41 +01:00
parent b2dd9f4214
commit 2e9320886f

View File

@ -16,7 +16,7 @@ sheetCurrent tid ssh csh = do
E.&&. course E.^. CourseTerm E.==. E.val tid
E.&&. course E.^. CourseSchool E.==. E.val ssh
E.&&. course E.^. CourseShorthand E.==. E.val csh
E.orderBy [E.asc $ sheet E.^. SheetActiveFrom]
E.orderBy [E.asc $ sheet E.^. SheetActiveTo]
E.limit 1
return $ sheet E.^. SheetName
return $ case sheets of