diff --git a/getter.py b/getter.py index 628234e..c7c0bb1 100755 --- a/getter.py +++ b/getter.py @@ -42,12 +42,13 @@ while True: comment = HTMLParser.HTMLParser().unescape(text.split("-")[1]) else: date = dateutil.parser.parse(text) + comment = "" except ValueError: api.update_status("@%s Sorry, ich verstehe deinen Tweet nicht... :(" % sender, twid) continue cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','%s')" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender,comment)) - cur.commit + cur.commit() savepoint = twid time.sleep(60)