zhouj1203@hotmail.com 3 år sedan
förälder
incheckning
afb0d67b2d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      TEAMModelOS.SDK/Models/Service/StatisticsService.cs

+ 1 - 1
TEAMModelOS.SDK/Models/Service/StatisticsService.cs

@@ -702,7 +702,7 @@ namespace TEAMModelOS.SDK
                     {
                         HomeworkRecord homeworkRecord = homeworkRecords.Find(y => y.id.Equals(study.workId));
                         record.other = homeworkRecord?.content;
-                        Attachment attachment = homeworkRecord != null ? homeworkRecord.content.Find(x => x.prime) : null;
+                        Attachment attachment = homeworkRecord?.content.Find(x => x.prime);
                         record.haswork = 1;
                         if (null != attachment)
                         {