aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/model.py')
-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