From: Razvan Deaconescu Date: Fri, 19 Aug 2011 10:07:46 +0000 (+0300) Subject: ppf: Replace '?' string with '%s' in access.py. X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=18b06b9934fd9dabd39c68ecc2ac05e07df57b9c;p=cs-p2p-next.git ppf: Replace '?' string with '%s' in access.py. --- 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])