From 570684d3087b72296a32146fc69b55da05c23db9 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sat, 23 May 2020 21:26:39 +0200 Subject: [PATCH] Fix custom bool column not visible in adv search if linked to read status --- cps/web.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cps/web.py b/cps/web.py index 3205b839..b21146ca 100644 --- a/cps/web.py +++ b/cps/web.py @@ -984,14 +984,15 @@ def get_tasks_status(): return render_title_template('tasks.html', entries=answer, title=_(u"Tasks"), page="tasks") -# ################################### Search functions ################################################################ - @app.route("/reconnect") def reconnect(): db.reconnect_db(config, ub.app_DB_path) return json.dumps({}) +# ################################### Search functions ################################################################ + + @web.route("/search", methods=["GET"]) @login_required_if_no_ano def search(): @@ -1019,7 +1020,7 @@ def search(): @login_required_if_no_ano def advanced_search(): # Build custom columns names - cc = get_cc_columns() + cc = get_cc_columns(filter_config_custom_read=True) calibre_db.session.connection().connection.connection.create_function("lower", 1, db.lcase) q = calibre_db.session.query(db.Books).filter(calibre_db.common_filters()).order_by(db.Books.sort)