From 18b06b9934fd9dabd39c68ecc2ac05e07df57b9c Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Fri, 19 Aug 2011 13:07:46 +0300 Subject: [PATCH] ppf: Replace '?' string with '%s' in access.py. --- ppf/db/access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppf/db/access.py b/ppf/db/access.py index e741324..9d8bd57 100644 --- a/ppf/db/access.py +++ b/ppf/db/access.py @@ -178,8 +178,8 @@ class SQLiteDatabaseAccess(DatabaseAccess): """) else: self.cursor.execute(""" - DELETE FROM swarms WHERE id=? - """, (swarm_id,)) + DELETE FROM swarms WHERE id='%s' + """ %swarm_id) self.conn.commit() except sqlite3.Error, e: print("[swarms]An error ocurred: ", e.args[0]) -- 2.20.1