cleanup
This commit is contained in:
parent
e104fae66f
commit
8063c611da
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user