Fix function call

This commit is contained in:
Klaus-Uwe Mitterer 2016-12-07 12:20:00 +01:00
parent 64829d57ab
commit 9b0dbf8bf1

View file

@ -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()