|
@@ -360,21 +360,21 @@ namespace TEAMModelOS.Controllers
|
|
|
result.studentAnswers.Add(new List<string>());
|
|
|
result.sum.Add(0);
|
|
|
}
|
|
|
- int flagCount = 0;
|
|
|
- foreach (List<string> str in ans) {
|
|
|
+ //int flagCount = 0;
|
|
|
+ /*foreach (List<string> str in ans) {
|
|
|
|
|
|
if (str.Count == 0) {
|
|
|
flagCount++;
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
int newIndex = result.studentIds.IndexOf(studentId.ToString());
|
|
|
- if (flagCount != standard.Count)
|
|
|
- {
|
|
|
+ /*if (flagCount != standard.Count)
|
|
|
+ {*/
|
|
|
string FileName = result.examId + "/" + result.subjectId + "/" + studentId;
|
|
|
string blob = FileName + "/" + "ans.json";
|
|
|
tasks.Add(_azureStorage.UploadFileByContainer(school.ToString(), ans.ToJsonString(), "exam", FileName + "/" + "ans.json", false));
|
|
|
result.studentAnswers[newIndex].Add(blob);
|
|
|
- }
|
|
|
+ //}
|
|
|
for (int i = 0; i < ans.Count; i++)
|
|
|
{
|
|
|
//result.studentAnswers[index][i] = ans[i];
|