Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Fix reply_to storing in DB #1321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion twint/storage/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def tweets(conn, Tweet, config):
if Tweet.reply_to:
for reply in Tweet.reply_to:
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()
except sqlite3.IntegrityError:
Expand Down