add .all() to home.py

This commit is contained in:
SvyatoslavArtymovych 2023-05-18 18:12:41 +03:00
parent 43404a43d0
commit f0200dc2ce
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ bp = Blueprint("home", __name__, url_prefix="/home")
def get_all():
books: m.Book = (
m.Book.query.filter_by(is_deleted=False).order_by(m.Book.id).limit(5)
)
).all()
interpretations = (
db.session.query(
m.Interpretation,