From 80833396586fc67ff2fcae493ce87ed237077dca Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sat, 11 Apr 2015 20:49:31 +0200 Subject: [PATCH] litte error in FMS MySQL --- boswatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boswatch.py b/boswatch.py index 0b5ed13..de771e1 100644 --- a/boswatch.py +++ b/boswatch.py @@ -243,7 +243,7 @@ try: try: connection = mysql.connector.connect(host = str(dbserver), user = str(dbuser), passwd = str(dbpassword), db = str(database)) cursor = connection.cursor() - cursor.execute("INSERT INTO "+tableFMS+" (time,fms,status,direction,tsi) VALUES (%s,%s,%s,%s,%s,%s,%s,%s)",(curtime(),fms_id[0:8],fms_status,fms_direction,fms_tsi)) + cursor.execute("INSERT INTO "+tableFMS+" (time,fms,status,direction,tsi) VALUES (%s,%s,%s,%s,%s)",(curtime(),fms_id[0:8],fms_status,fms_direction,fms_tsi)) cursor.close() connection.commit() except: