mirror of https://github.com/logos-co/open-law.git
add .all() to home.py
This commit is contained in:
parent
43404a43d0
commit
f0200dc2ce
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue