commit | e03de000860a12d4ce55953024269789e7ce4904 | [log] [tgz] |
---|---|---|
author | Steve McIntyre <steve.mcintyre@linaro.org> | Tue Dec 02 17:14:14 2014 +0000 |
committer | Steve McIntyre <steve.mcintyre@linaro.org> | Tue Dec 02 17:14:14 2014 +0000 |
tree | 3779b03d1b955c84558ae2753c72f8499bc217c9 | |
parent | c3b2ae4088fa3b6142c5442becd014b7ebe6c73f [diff] [blame] |
Fix _delete_row() so it actually works! Change-Id: Ieec0348d750d4996118245fe34e09c09c221f0a5
diff --git a/db/db.py b/db/db.py index 28921d2..014d7de 100644 --- a/db/db.py +++ b/db/db.py
@@ -130,8 +130,8 @@ def _delete_row(self, table, field, value): try: - sql = "DELETE FROM %s WHERE %s = %s" - data = (table, field, value) + sql = "DELETE FROM %s WHERE %s = %s" % (table, field, '%s') + data = (value,) self.cursor.execute(sql, data) self.connection.commit() except: