1
0
Fork 0

added a new preparation step to replicate each project for the programme it is associated to

This commit is contained in:
Miriam Baglioni 2020-05-20 10:28:56 +02:00
parent 24daa1deaa
commit 75491482de
1 changed files with 2 additions and 0 deletions

View File

@ -82,9 +82,11 @@ public class PrepareProjects {
List<CSVProject> csvProjectList = new ArrayList<>();
String[] programme = p.getProgramme().split(";");
if (programme.length > 1) {
String id = p.getId();
for (int i = 0; i < programme.length; i++) {
CSVProject csvProject = new CSVProject();
csvProject.setProgramme(programme[i]);
csvProject.setId(id);
csvProjectList.add(csvProject);
}
} else {