Fixed commit statement
This commit is contained in:
parent
7bde1b84e4
commit
3c63c1bcaf
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue