Commit 14edb29e authored by Francesco Poldi's avatar Francesco Poldi Committed by GitHub

Update db.py

parent 70885067
...@@ -247,7 +247,7 @@ def tweets(conn, Tweet, config): ...@@ -247,7 +247,7 @@ def tweets(conn, Tweet, config):
Tweet.quote_url, Tweet.quote_url,
Tweet.video, Tweet.video,
time_ms) time_ms)
cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry) cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry)
if config.Favorites: if config.Favorites:
query = 'INSERT INTO favorites VALUES(?,?)' query = 'INSERT INTO favorites VALUES(?,?)'
...@@ -259,4 +259,4 @@ def tweets(conn, Tweet, config): ...@@ -259,4 +259,4 @@ def tweets(conn, Tweet, config):
conn.commit() conn.commit()
except sqlite3.IntegrityError: except sqlite3.IntegrityError:
pass pass
\ No newline at end of file
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