fix(lms): do not mark lms users with open status as ended
This commit is contained in:
parent
bb708ca540
commit
a84812640f
@ -329,6 +329,7 @@ dispatchJobLmsReports qid = JobHandlerAtomic act
|
||||
E.set luser [ LmsUserEnded E.=. E.justVal now ]
|
||||
E.where_ $ E.val qid E.==. luser E.^. LmsUserQualification
|
||||
E.&&. E.isNothing (luser E.^. LmsUserEnded )
|
||||
E.&&. E.isJust (luser E.^. LmsUserStatus ) -- status is decided
|
||||
E.&&. E.isJust (luser E.^. LmsUserReceived) -- seen before, for otherwise it might not have been started yet
|
||||
E.&&. E.notExists (do
|
||||
lreport <- E.from $ E.table @LmsReport
|
||||
|
||||
Loading…
Reference in New Issue
Block a user