This commit is contained in:
adb 2021-03-10 12:52:45 +01:00
parent e104fae66f
commit 8063c611da
2 changed files with 1 additions and 3 deletions

View File

@ -30,7 +30,6 @@ public class DataStoreBot {
e.printStackTrace();
}
}, 0, seconds, TimeUnit.SECONDS);
//ses.shutdown();
}
public Runnable storeLatestEntry() throws IOException, ParseException {
JSONArray APIData = this.api.getJSONObject();
@ -53,8 +52,7 @@ public class DataStoreBot {
String timestamp = (String) entry.get("timestamp");
String path = this.storePath + country + "-" + sensorID + "-" + timestamp + ".json";
path = path.replace(":", "-");
path = path.replace(" ", "-");
path = path.replace(":", "-").replace(" ", "-");
this.store.storeJSON(path, entry);
}
}