Actually commit after SQL queries
This commit is contained in:
parent
010f9e56b6
commit
7bde1b84e4
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ while True:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','%s')" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender,comment))
|
cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','%s')" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender,comment))
|
||||||
|
cur.commit
|
||||||
|
|
||||||
savepoint = twid
|
savepoint = twid
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
|
|
Loading…
Reference in a new issue