Implement requested workflow and UI updates
This commit is contained in:
1 parent
5959585864
commit
390d0b123f
18 files changed
+7800
-35
No files matched your search
@@ -446,6 +446,15 @@ public sealed class AcademicPlanningController(
|
||||
.Select(x => x.CourseId)
|
||||
.Distinct()
|
||||
.ToHashSet();
|
||||
var approvedSubstitutions = await db.CourseSubstitutions.AsNoTracking()
|
||||
.Where(x => x.StudentId == student.Id && x.Status == ApprovalStatus.Approved)
|
||||
.Select(x => new { x.OriginalCourseId, x.SubstituteCourseId })
|
||||
.ToListAsync(cancellationToken);
|
||||
foreach (var substitution in approvedSubstitutions)
|
||||
{
|
||||
if (passedCourseIds.Contains(substitution.SubstituteCourseId))
|
||||
passedCourseIds.Add(substitution.OriginalCourseId);
|
||||
}
|
||||
var failedCourseIds = gradeAttempts
|
||||
.GroupBy(x => x.CourseId)
|
||||
.Where(group => !group.Any(x =>
|
||||
|
||||
Reference in new issue
Block a user