Minor Refactor

This commit is contained in:
SJost 2019-01-30 11:20:46 +01:00
parent 0c9f9aa419
commit a45e83fa68

View File

@ -34,7 +34,7 @@ sheetOldUnassigned 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.where_ . E.exists . E.from $ \submission -> do
E.where_ . E.exists . E.from $ \submission ->
E.where_ $ submission E.^. SubmissionSheet E.==. sheet E.^. SheetId
E.&&. E.isNothing (submission E.^. SubmissionRatingBy)
E.orderBy [E.desc $ sheet E.^. SheetActiveTo]