Call the actual commit function...

This commit is contained in:
Klaus-Uwe Mitterer 2015-03-18 22:50:03 +01:00
parent 753d4fc820
commit 416b5b8e37
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ while True:
continue
cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','%s',0)" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender,comment))
cur.commit()
sql_conn.commit()
savepoint = twid

View file

@ -31,7 +31,7 @@ while True:
try:
api.update_status("@%s Es wär soweit... :)" % recipient, original)
cur.execute("UPDATE tweets SET sent = 1 WHERE tweet_id = %i" % original)
cur.commit()
sql_conn.commit()
except:
pass