Call the actual commit function...
This commit is contained in:
parent
753d4fc820
commit
416b5b8e37
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue