zhouj1203@hotmail.com před 2 roky
rodič
revize
fd4c726c7a
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      TEAMModelOS.FunctionV4/CosmosDB/TriggerExam.cs

+ 3 - 3
TEAMModelOS.FunctionV4/CosmosDB/TriggerExam.cs

@@ -1293,7 +1293,7 @@ namespace TEAMModelOS.FunctionV4
             List<string> lostStu = new List<string>();
             List<double> csRate = new List<double>();
             List<List<List<string>>> opt = new List<List<List<string>>>();
-            List<Task<ItemResponse<ExamClassResult>>> tasks = new();
+            //List<Task<ItemResponse<ExamClassResult>>> tasks = new();
             foreach (ExamClassResult classResult in examClassResults)
             {
                 double classSrate = 0;
@@ -1372,9 +1372,9 @@ namespace TEAMModelOS.FunctionV4
                     //powSum += Math.Pow(classSrate - result.average, 2);
                     //处理选项计数内容
                 }
-                tasks.Add(_azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Common").ReplaceItemAsync(classResult, classResult.id, new PartitionKey($"{classResult.code}")));
+                //tasks.Add(_azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Common").ReplaceItemAsync(classResult, classResult.id, new PartitionKey($"{classResult.code}")));
             }
-            await tasks.TaskPage(10);
+            //await tasks.TaskPage(10);
             /*foreach (string id in result.lostStus) {
                 if (!examClassResults[0].studentIds.Contains(id)) { 
                     int index = result.lostStus.IndexOf(id);