projects
/
cs-p2p-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d9389b
)
ppf: Replace '?' string with '%s' in access.py.
author
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Fri, 19 Aug 2011 10:07:46 +0000
(13:07 +0300)
committer
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Fri, 19 Aug 2011 10:07:46 +0000
(13:07 +0300)
ppf/db/access.py
patch
|
blob
|
history
diff --git
a/ppf/db/access.py
b/ppf/db/access.py
index
e741324
..
9d8bd57
100644
(file)
--- 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])