From 50a2f9e617ac1efc257d5f27ad58b6c68be9b5b1 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 8 Nov 2009 11:57:01 +0000 Subject: [PATCH] don't be too lax with our LIKE match Signed-off-by: Mark Hymers --- daklib/dbconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 84d5b1c2..e1b24250 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1152,7 +1152,7 @@ def get_poolfile_like_name(filename, session=None): """ # TODO: There must be a way of properly using bind parameters with %FOO% - q = session.query(PoolFile).filter(PoolFile.filename.like('%%%s%%' % filename)) + q = session.query(PoolFile).filter(PoolFile.filename.like('%%/%s' % filename)) return q.all() -- 2.39.5