diff --git a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java index 38d84b5..7b7caba 100644 --- a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java +++ b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java @@ -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); } } diff --git a/src/main/java/sh/adb/sensorCommunityAPI/get.json b/src/main/java/sh/adb/sensorCommunityAPI/get.json deleted file mode 100644 index e69de29..0000000