Commit ee565b3c authored by Cody Zacharias's avatar Cody Zacharias

Fixes to pass test

parent ea5dcfca
#!/usr/bin/python3
#!/usr/bin/env python3
'''
Twint.py - Twitter Intelligence Tool (formerly known as Tweep).
......
......@@ -38,8 +38,7 @@ def init(db):
user_rt text,
mentions text,
date_update text not null,
search_name text not null,
PRIMARY KEY (id, search_name)
PRIMARY KEY (id)
);
"""
cursor.execute(table_tweets)
......@@ -199,9 +198,8 @@ def tweets(conn, Tweet, config):
Tweet.retweet,
Tweet.user_rt,
",".join(Tweet.mentions),
date_time,
config.search_name,)
cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry)
date_time)
cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry)
conn.commit()
except sqlite3.IntegrityError:
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