Compare commits
No commits in common. "c8d62eb5820a83950712e82a34e7237aeacbfd90" and "516f17e5b7fe99c821ff5509752ff974699c1027" have entirely different histories.
c8d62eb582
...
516f17e5b7
|
|
@ -1205,7 +1205,6 @@ namespace OnlineAssessment.Data.EFCore
|
|||
join us in _context.Users on ex.CreatedBy equals us.Id
|
||||
join qs in _context.ExamQuestionsMarkWeight on us.IsActive equals qs.IsActive into qns
|
||||
|
||||
|
||||
where ex.InstituteId == institute_id
|
||||
&& uge.UserGroupId == batch_id && uge.IsActive == true
|
||||
&& sections.All(a => a.IsActive == true)
|
||||
|
|
@ -1234,14 +1233,6 @@ namespace OnlineAssessment.Data.EFCore
|
|||
examDetail.attempts_allowed = item.e.AttemptsAllowed;
|
||||
//examDetail.points_needed = (short)item.e.CreditsNeeded;
|
||||
//examDetail.points_available = myExamPoints;
|
||||
var latestAttempt = _context.ExamAttempts
|
||||
.Where(a => a.ExamId == item.e.Id && a.CreatedBy == user_id)
|
||||
.OrderByDescending(a => a.CreatedOn)
|
||||
.FirstOrDefault();
|
||||
|
||||
if (latestAttempt != null)
|
||||
examDetail.attempt_status = latestAttempt.Status;
|
||||
|
||||
examDetail.start_date = item.e.ExamOpenDatetime;
|
||||
examDetail.end_date = item.e.ExamCloseDatetime;
|
||||
examDetail.exam_duration = item.e.ExamDurationInSeconds;
|
||||
|
|
|
|||
Loading…
Reference in New Issue