Commit 52ef69af authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

(#126)

parent bf9e9693
...@@ -187,6 +187,7 @@ def tweets(conn, Tweet): ...@@ -187,6 +187,7 @@ def tweets(conn, Tweet):
Tweet.location, Tweet.location,
Tweet.username, Tweet.username,
Tweet.tweet, Tweet.tweet,
Tweet.replies,
Tweet.likes, Tweet.likes,
Tweet.retweets, Tweet.retweets,
",".join(Tweet.hashtags), ",".join(Tweet.hashtags),
...@@ -195,7 +196,7 @@ def tweets(conn, Tweet): ...@@ -195,7 +196,7 @@ def tweets(conn, Tweet):
Tweet.user_rt, Tweet.user_rt,
",".join(Tweet.mentions), ",".join(Tweet.mentions),
date_time,) date_time,)
cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry) cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry)
conn.commit() conn.commit()
except sqlite3.IntegrityError: except sqlite3.IntegrityError:
pass pass
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