diff options
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/QueryUtils.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/database/QueryUtils.java b/src/database/QueryUtils.java index f87ba47..228ccc8 100644 --- a/src/database/QueryUtils.java +++ b/src/database/QueryUtils.java @@ -103,7 +103,11 @@ public class QueryUtils { } tweetStatement.setLong("replyid", tweet.in_reply_to_user_id); // TODO: place is not a string... - tweetStatement.setString("place", tweet.place); + if (tweet.place != null) { + tweetStatement.setString("place", tweet.place.full_name + " " + tweet.place.country); + } else { + tweetStatement.setString("place", null); + } User twuser = tweet.user; tweetStatement.setLong("userid", twuser.id); |