From b7d2653c88518f31e028251fcc6191217ecdf169 Mon Sep 17 00:00:00 2001 From: Marcel Marnitz Date: Thu, 19 Aug 2021 22:17:02 +0200 Subject: [PATCH] Remove grades when type is Entfall or Freisetzung --- UntisIccImporter.Gui/Import/Importer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UntisIccImporter.Gui/Import/Importer.cs b/UntisIccImporter.Gui/Import/Importer.cs index c391b60..5075013 100644 --- a/UntisIccImporter.Gui/Import/Importer.cs +++ b/UntisIccImporter.Gui/Import/Importer.cs @@ -236,6 +236,11 @@ public async Task ImportSubstitutionsAsync(UntisExportResult resul data.ReplacementSubject = subjectReplacementMap[data.ReplacementSubject]; } + if(substitution.Type == SubstitutionType.Entfall || substitution.Type == SubstitutionType.Freisetzung) + { + data.ReplacementGrades.Clear(); + } + return data; }).Collapse().ToList();