diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 0540e8b..a4e4bbc 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1877,12 +1877,8 @@ def search_issues( ) if search_pattern is not None: - query = session.query( - model.Issue - ).filter( + query = query.filter( model.Issue.title.like('%' + str(search_pattern) + '%') - ).filter( - model.Issue.project_id == repo.id ) query = query.order_by(