forked from D-Net/dnet-hadoop
added a new preparation step to replicate each project for the programme it is associated to
This commit is contained in:
parent
24daa1deaa
commit
75491482de
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue