From ff4502c63a89779e8a39a68b2f41a166245ce2be Mon Sep 17 00:00:00 2001 From: cbartondock Date: Sun, 7 Mar 2021 15:23:05 -0500 Subject: [PATCH] Made shelf search user specific --- cps/web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cps/web.py b/cps/web.py index e7e5f065..500d9c90 100644 --- a/cps/web.py +++ b/cps/web.py @@ -683,6 +683,7 @@ def render_prepare_search_form(cc): .order_by(db.Series.name)\ .filter(calibre_db.common_filters()).all() shelves = ub.session.query(ub.Shelf)\ + .filter(or_(ub.Shelf.is_public == 1, ub.Shelf.user_id == int(current_user.id)))\ .order_by(ub.Shelf.name).all() extensions = calibre_db.session.query(db.Data)\ .join(db.Books)\