diff --git a/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/model/MediaInformation.scala b/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/model/MediaInformation.scala index 3a9099fc8..4ea406b69 100644 --- a/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/model/MediaInformation.scala +++ b/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/model/MediaInformation.scala @@ -58,7 +58,7 @@ object MediaInformation { } } -case class ExcelMediaInformationTasks(tasks: List[ExcelMediaInformation], enableExperimentalFeatures: Boolean = false) +case class ExcelMediaInformationTasks(tasks: List[ExcelMediaInformation], enableExperimentalFeatures: Boolean = false, disableFeedback: Boolean = false) case class ExcelMediaInformation(sheetIdx: Int, changeFields: List[ExcelMediaInformationChange] = List(), @deprecated("Use checkFields instead") outputFields: String, checkFields: List[ExcelMediaInformationCheck] = List(), diff --git a/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/services/checker/excel/ExcelCheckerService.scala b/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/services/checker/excel/ExcelCheckerService.scala index fc885312a..5752e6cca 100644 --- a/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/services/checker/excel/ExcelCheckerService.scala +++ b/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/services/checker/excel/ExcelCheckerService.scala @@ -184,10 +184,12 @@ class ExcelCheckerService extends CheckerService with CheckerServiceOnMainFileUp "OK" } else { val correct = results.count(c => c.success) - val hints = results.zip(excelMediaInformation.tasks) - .filter(t => !t._1.success) - .map(t => buildTaskResultText(t._1, t._2)) - .mkString("\n") + val hints = if (!excelMediaInformation.disableFeedback) { + results.zip(excelMediaInformation.tasks) + .filter(t => !t._1.success) + .map(t => buildTaskResultText(t._1, t._2)) + .mkString("\n") + } else {""} val res = f"$correct von ${results.length} Unteraufgaben richtig." if (hints.nonEmpty) {