Commit b5a04e5b authored by Tortar's avatar Tortar Committed by GitHub
parent 20dee4a3
...@@ -252,7 +252,7 @@ def tweets(conn, Tweet, config): ...@@ -252,7 +252,7 @@ def tweets(conn, Tweet, config):
Tweet.datestamp, Tweet.datestamp,
Tweet.timestamp, Tweet.timestamp,
Tweet.timezone, Tweet.timezone,
Tweet.place, str(Tweet.place),
Tweet.replies_count, Tweet.replies_count,
Tweet.likes_count, Tweet.likes_count,
Tweet.retweets_count, Tweet.retweets_count,
...@@ -261,7 +261,7 @@ def tweets(conn, Tweet, config): ...@@ -261,7 +261,7 @@ def tweets(conn, Tweet, config):
Tweet.username, Tweet.username,
Tweet.name, Tweet.name,
Tweet.link, Tweet.link,
",".join(Tweet.mentions), ",".join(str(x) for x in Tweet.mentions),
",".join(Tweet.hashtags), ",".join(Tweet.hashtags),
",".join(Tweet.cashtags), ",".join(Tweet.cashtags),
",".join(Tweet.urls), ",".join(Tweet.urls),
...@@ -290,7 +290,7 @@ def tweets(conn, Tweet, config): ...@@ -290,7 +290,7 @@ def tweets(conn, Tweet, config):
if Tweet.reply_to: if Tweet.reply_to:
for reply in Tweet.reply_to: for reply in Tweet.reply_to:
query = 'INSERT INTO replies VALUES(?,?,?)' query = 'INSERT INTO replies VALUES(?,?,?)'
cursor.execute(query, (Tweet.id, int(reply['user_id']), reply['username'])) cursor.execute(query, (Tweet.id, int(reply['id']), reply['name']))
conn.commit() conn.commit()
except sqlite3.IntegrityError: except sqlite3.IntegrityError:
......
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