Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Remove grades when type is Entfall or Freisetzung
Browse files Browse the repository at this point in the history
  • Loading branch information
frostieDE committed Aug 19, 2021
1 parent 527b8ca commit b7d2653
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UntisIccImporter.Gui/Import/Importer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ public async Task<ImportResult> ImportSubstitutionsAsync(UntisExportResult resul
data.ReplacementSubject = subjectReplacementMap[data.ReplacementSubject];
}
if(substitution.Type == SubstitutionType.Entfall || substitution.Type == SubstitutionType.Freisetzung)
{
data.ReplacementGrades.Clear();
}
return data;
}).Collapse().ToList();

Expand Down

0 comments on commit b7d2653

Please sign in to comment.