Skip to content
Snippets Groups Projects
Commit 98c38973 authored by Antony Tong's avatar Antony Tong
Browse files

Remove call to old PHIS instances

parent 19350273
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ public class ImportData {
String[] expermimentsURIs = {};
String[] radiometricTargetUris = {};
String target = null;
boolean phisV2 = false;
boolean phisV2 = true;
boolean importPlots = false;
boolean importVignetings = false;
......@@ -389,12 +389,6 @@ public class ImportData {
}
}
if (Objects.nonNull(date)) {
try {
phisV2 = date.after(session1.parse("31/12/2021 23:59"));
} catch (ParseException e) {
logger.error(e.getMessage());
System.exit(-1);
}
campaign = year.format(date);
}
}
......@@ -436,18 +430,10 @@ public class ImportData {
TokenDTO token = null;
PhisCoreTokenDTO tokenPhisCore = null;
if (phisV2) {
logger.debug("Create token PHIS V2");
url = Installation.getRestURLV2(installation);
tokenPhisCore = importData.getPhisCoreToken(url);
} else {
logger.debug("Create token PHIS V1");
url = Installation.getRestURL(installation);
token = importData.getToken(url);
}
logger.debug("Create token PHIS V2");
url = Installation.getRestURLV2(installation);
tokenPhisCore = importData.getPhisCoreToken(url);
logger.debug("ImportData : installation url = {}", url);
if (importPlots) {
......
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