Fix function call
This commit is contained in:
parent
64829d57ab
commit
9b0dbf8bf1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def retweet(user, two=twitools.twObject(), db=dbtools.dbHelper()):
|
|||
for status in timeline:
|
||||
if (status.text[0] != "@" or two.whoami() in status.text) and status.text[0:2] != "RT":
|
||||
timestamp = status.created_at.strftime('%Y-%m-%d %H:%M:%S') + " +0000"
|
||||
text = unescapeText(status.text)
|
||||
text = setuptools.unescapeText(status.text)
|
||||
|
||||
db.executeQuery("INSERT INTO retweets('id','author','created_at','text') VALUES(" + str(status.id) + ",'" + user.lower() + "','" + timestamp + "','" + text + "')")
|
||||
db.commit()
|
||||
|
|
Loading…
Reference in a new issue