2
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-10 01:13:33 +00:00

Made shelf search user specific

This commit is contained in:
cbartondock 2021-03-07 15:23:05 -05:00
parent 9711bd8fe1
commit ff4502c63a

View File

@ -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)\