From f0200dc2ce4ccd6251ada8745f8a951514b4a3d2 Mon Sep 17 00:00:00 2001 From: SvyatoslavArtymovych Date: Thu, 18 May 2023 18:12:41 +0300 Subject: [PATCH] add .all() to home.py --- app/views/home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/home.py b/app/views/home.py index 138cdef..8a8f92d 100644 --- a/app/views/home.py +++ b/app/views/home.py @@ -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,