ppf: Replace '?' string with '%s' in access.py.
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 19 Aug 2011 10:07:46 +0000 (13:07 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 19 Aug 2011 10:07:46 +0000 (13:07 +0300)
ppf/db/access.py

index e741324..9d8bd57 100644 (file)
@@ -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])