From 3b03aa30a6fbba64c79519e920ee446b6c37dee1 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Mon, 6 May 2019 20:51:44 +0200 Subject: [PATCH] Fix for advanced search --- cps/web.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index a5dfe7c0..37d8d6df 100644 --- a/cps/web.py +++ b/cps/web.py @@ -897,7 +897,6 @@ def advanced_search(): custom_query = request.args.get('custom_column_' + str(c.id)) if custom_query: if c.datatype == 'bool': - getattr(db.Books, 'custom_column_1') q = q.filter(getattr(db.Books, 'custom_column_'+str(c.id)).any( db.cc_classes[c.id].value == (custom_query == "True"))) elif c.datatype == 'int':