Commit ff57d066 authored by andytnt's avatar andytnt

Fix json

parent d0fb0292
......@@ -7,15 +7,14 @@ def tweetData(t):
"user_id": int(t.user_id),
"username": t.username,
"tweet": t.tweet,
"replies": int(t.replies),
"retweets": int(t.retweets),
"likes": int(t.likes),
"replies": int(t.replies_count),
"retweets": int(t.retweets_count),
"likes": int(t.likes_count),
"location": t.location,
"hashtags": ",".join(t.hashtags),
"hashtags": t.hashtags,
"link": t.link,
"retweet": t.retweet,
"user_rt": t.user_rt,
"mentions": ",".join(t.mentions)
"mentions": t.mentions
}
return data
......@@ -35,7 +34,6 @@ def tweetFieldnames():
"hashtags",
"link",
"retweet",
"user_rt",
"mentions"
]
return fieldnames
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment