diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/data/Tweet.java | 2 | ||||
-rw-r--r-- | src/database/QueryUtils.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/data/Tweet.java b/src/data/Tweet.java index 2e1a1f1..d9b1de0 100644 --- a/src/data/Tweet.java +++ b/src/data/Tweet.java @@ -11,7 +11,7 @@ public class Tweet { @ValidatingJsonDeserializer.Nullable public String lang; @ValidatingJsonDeserializer.Nullable - public Long in_reply_to_user_id; + public Long in_reply_to_status_id; public DateTime created_at; public int favorite_count; @ValidatingJsonDeserializer.Nullable diff --git a/src/database/QueryUtils.java b/src/database/QueryUtils.java index dac3ffc..4af6c09 100644 --- a/src/database/QueryUtils.java +++ b/src/database/QueryUtils.java @@ -22,7 +22,7 @@ public class QueryUtils { = buildQuery("tweet", new String[]{"tweetid"}, "tweetid", "createdat::timestamptz", "favcount", "retweetcount", "text", "coordinates::point", - "language", "retweetid", "replyid", "place", + "language", "retweetid", "replytweetid", "place", "userid"); public final static String insertHash @@ -113,10 +113,10 @@ public class QueryUtils { } else { tweetStatement.setLong("retweetid", null); } - if (tweet.in_reply_to_user_id != null) { - tweetStatement.setLong("replyid", tweet.in_reply_to_user_id); + if (tweet.in_reply_to_status_id != null) { + tweetStatement.setLong("replytweetid", tweet.in_reply_to_status_id); } else { - tweetStatement.setLong("replyid", null); + tweetStatement.setLong("replytweetid", null); } // TODO: place is not a string... if (tweet.place != null) { |