diff --git a/src/main/java/API/Entry.java b/src/main/java/API/Entry.java index 6404a3b..8b5c950 100644 --- a/src/main/java/API/Entry.java +++ b/src/main/java/API/Entry.java @@ -36,13 +36,12 @@ public class Entry { static OkHttpClient client = new OkHttpClient(); public static void main(String[] args) throws Exception { - RunTwitterStream(); - Map map = new HashMap<>(); map.put("color_quality", "-1"); staticFileLocation("/public"); // Create DAOEntryMethodCaller.createTables(); + RunTwitterStream(); get("/", (req, res) -> new ModelAndView(map, "index"), new JadeTemplateEngine()); diff --git a/src/main/java/DAO/DataAccessObject.java b/src/main/java/DAO/DataAccessObject.java index a981076..cd265cc 100644 --- a/src/main/java/DAO/DataAccessObject.java +++ b/src/main/java/DAO/DataAccessObject.java @@ -107,7 +107,7 @@ public static JsonArray processCities() throws Exception { jobj.addProperty("latitude", rs.getDouble("latitude")); jobj.addProperty("temp", rs.getDouble("temp")); jobj.addProperty("weight", rs.getDouble("intensity")); - if(rs.getDouble("intensity") > 1000d) + if(rs.getDouble("intensity") > 150d) SendTweet(rs.getDouble("intensity"), GetLocation.CoordsToCity(rs.getDouble("longitude"), rs.getDouble("latitude"))); jarr.add(jobj); } diff --git a/userData.db b/userData.db new file mode 100644 index 0000000..e69de29 diff --git a/userEntries.db b/userEntries.db index 64528d1..72f8433 100644 Binary files a/userEntries.db and b/userEntries.db differ