aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-10-13 09:03:29 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2007-10-13 09:03:29 +0000
commit7dbb68fe9d6aacca95ca9f85115bdecd1b3336e1 (patch)
tree194a8483a148f022c08c7c99fe2c22e12a81cebc
parentUpdate instructions (diff)
downloadpackages-3-old-master.tar.gz
packages-3-old-master.tar.bz2
packages-3-old-master.zip
Use DB-specific placeholder.old-master
-rw-r--r--web/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/model.py b/web/model.py
index a837cb5..dd5b0ac 100644
--- a/web/model.py
+++ b/web/model.py
@@ -110,7 +110,7 @@ class PackageDB(object):
except ValueError:
return []
- self.cursor.execute(sql, params)
+ self.cursor.execute(sql.replace('?',self.syntax_placeholder), params)
entries = self.cursor.fetchall()
return entries
@@ -129,7 +129,7 @@ class PackageDB(object):
except ValueError:
return []
- self.cursor.execute(sql, params)
+ self.cursor.execute(sql.replace('?',self.syntax_placeholder), params)
entries = self.cursor.fetchall()
#print 'get_latest_cpvs_by_category_pkgname=%s' % (entries,)
return entries