From a2bff5c6d7d3f15a3daf8270de9f30ab0ca62925 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 7 Dec 2016 12:20:00 +0100 Subject: [PATCH] Fix function call --- retweeter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retweeter.py b/retweeter.py index c842bce..82697a1 100755 --- a/retweeter.py +++ b/retweeter.py @@ -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()