From e9d67fdac93bfe4ae9e77d3b18d5ba8369b345ba Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 10 Aug 2020 11:54:00 +0200 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- src/Utils/Course.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/Course.hs b/src/Utils/Course.hs index 79ed0d6c8..19726c54e 100644 --- a/src/Utils/Course.hs +++ b/src/Utils/Course.hs @@ -137,7 +137,7 @@ courseAllocationRegistrationOpen now cid maid = E.exists . E.from $ \(allocation E.on $ allocationCourse E.^. AllocationCourseAllocation E.==. allocation E.^. AllocationId E.where_ $ allocationCourse E.^. AllocationCourseCourse E.==. cid E.&&. E.maybe - (E.val False) + E.true (\registerFrom -> registerFrom E.<=. E.val now) (allocation E.^. AllocationRegisterFrom) E.&&. E.maybe