X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/c50e600e708d2083290134440223ab65076376ee..55270a42bf0699bd78b95a945fddd73a165507ee:/floof/controllers/search.py diff --git a/floof/controllers/search.py b/floof/controllers/search.py index 88dfbe3..abedd16 100644 --- a/floof/controllers/search.py +++ b/floof/controllers/search.py @@ -16,13 +16,13 @@ class SearchController(BaseController): """Search, implemented the stupid way!""" query = request.params.get('query', '') tags = query.split() - + tagtexts = TagText.query.filter(TagText.text.in_(tags)) tagtext_ids = [_.id for _ in tagtexts] # Fetch art that has all the tags c.artwork = Art.query.join(Tag) \ - .filter(Tag.id.in_(tagtext_ids)) \ + .filter(Tag.tagtext_id.in_(tagtext_ids)) \ .all() - return render('/index.mako') + return render('/index.mako') \ No newline at end of file