|
@@ -503,7 +503,7 @@ namespace TEAMModelOS.Controllers
|
|
|
});
|
|
|
await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(exam, id.ToString(), new PartitionKey($"Exam-{school}"));
|
|
|
}
|
|
|
- result.sum[index] = result.studentScores[index].Sum();
|
|
|
+ result.sum[newIndex] = result.studentScores[newIndex].Sum();
|
|
|
classResult = await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(result, result.id, new PartitionKey($"{result.code}"));
|
|
|
}
|
|
|
|