From e5fa85fc110f7aa521dd56c2007adf927a695863 Mon Sep 17 00:00:00 2001 From: kpfa <72320583+kpfa@users.noreply.github.com> Date: Fri, 8 Jan 2021 03:08:09 -0800 Subject: [PATCH] clear values_to_insert Bugs to Note #3 fixes issue no. 2 of Bugs to Note #3 --- icecastlogparser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/icecastlogparser.py b/icecastlogparser.py index aba1f4b..8a087b8 100755 --- a/icecastlogparser.py +++ b/icecastlogparser.py @@ -127,6 +127,7 @@ def getLogLineBNF(): cursor.executemany(query, values_to_insert) # Commit your changes in the database conn.commit() + values_to_insert = [] except MySQLdb.Error, e: # Rollback in case there is any error print "An error has been passed. %s" % e