Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit fbe0d5a6 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix when adding results, ignore exempted mission when reading declaration data

parent ac17d08d
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ namespace TUGraz.VectoCore.Models.Declaration
{
var missionTypes = Enum.GetValues(typeof(MissionType)).Cast<MissionType>();
var missions = new List<Mission>();
foreach (var missionType in missionTypes.Where(m => m.IsDeclarationMission() && row.Field<string>(m.ToString()) != "-")) {
foreach (var missionType in missionTypes.Where(m => m.IsDeclarationMission() && m != MissionType.ExemptedMission && row.Field<string>(m.ToString()) != "-")) {
var bodyColumn = missionType == MissionType.Construction ? "bodyconstruction" : "body";
var body = DeclarationData.StandardBodies.Lookup(row.Field<string>(bodyColumn));
......
......@@ -102,8 +102,8 @@ namespace TUGraz.VectoCore.OutputData
{
var missionType = mission.MissionType;
if (!Missions.ContainsKey(missionType)) {
Missions[MissionType.ExemptedMission] = new ResultContainer<T>() {
Mission = MissionType.ExemptedMission,
Missions[missionType] = new ResultContainer<T>() {
Mission = missionType,
ResultEntry = new Dictionary<LoadingType, T>(),
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment