From 88da7e8974a5d8c381714fe1912e71debe0674c8 Mon Sep 17 00:00:00 2001 From: Gustavo Duarte Date: Fri, 17 Jan 2014 12:52:43 +0000 Subject: Merge commit 'refs/merge-requests/2' of git://git.sugarlabs.org/statistics-consolidation/statistics-consolidation into merge-request/2 --- diff --git a/stats_consolidation/db.py b/stats_consolidation/db.py index c2bf028..5b03e65 100644 --- a/stats_consolidation/db.py +++ b/stats_consolidation/db.py @@ -415,6 +415,8 @@ class DB_Stats: cursor.execute ("UPDATE Users SET school = %s WHERE machine_sn = %s", (school, machine_sn)) except mysql.connector.Error as err: log.error("MySQL on %s: %s", cursor.statement, err) + else: + self.cnx.commit() cursor.close() -- cgit v0.9.1