Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/21 10:53:47 (3 years ago)
Author:
dpiringe
Message:

#3026

  • fixed the possibility for duplicated result entries in template generation
  • added a check for duplicated result entries in Runner to prevent an Key already exists exception (a user could manually manipulate the template file to generate this type of exception, thats the reason for a second check)
  • fixed the relative to absolute path transformation in JsonTemplateInstantiator
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs

    r18026 r18039  
    6666        foreach(var result in filteredResults) {
    6767          var formatter = GetResultFormatter(result.Item1.ResultFormatterType);
    68           obj.Add(result.Item1.Name, formatter.Format(result.Item2));
     68          if(!obj.ContainsKey(result.Item1.Name)) // to prevent duplicates
     69            obj.Add(result.Item1.Name, formatter.Format(result.Item2));
    6970        }
    7071      }
Note: See TracChangeset for help on using the changeset viewer.