diff --git a/getter.py b/getter.py index a55514c..628234e 100755 --- a/getter.py +++ b/getter.py @@ -47,6 +47,7 @@ while True: continue 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 time.sleep(60)