bug5920: removed M2S access token from executable parts of code; needs to come from manage2sail.accesstoken system property now

This commit is contained in:
Axel Uhl
2023-11-27 18:46:12 +01:00
parent 4de751894a
commit a3d3d10ef6
34 changed files with 149 additions and 99 deletions
@@ -1,8 +1,7 @@
package com.sapsailing.xrr.structureimport.eventimport;
public class EventImport {
public Iterable<RegattaJSON> getRegattas(String url){
public Iterable<RegattaJSON> getRegattas(String url) {
EventResults results = new EventParser().parseEvent(url);
return results.getRegattas();
}
@@ -24,7 +24,6 @@ public class EventParser {
JSONObject jsonRoot;
try {
InputStreamReader streamReader = getStreamReader(url);
jsonRoot = (JSONObject) new JSONParser().parse(streamReader);
String id = (String) jsonRoot.get("Id");
String name = (String) jsonRoot.get("Name");