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():
|
def get_all():
|
||||||
books: m.Book = (
|
books: m.Book = (
|
||||||
m.Book.query.filter_by(is_deleted=False).order_by(m.Book.id).limit(5)
|
m.Book.query.filter_by(is_deleted=False).order_by(m.Book.id).limit(5)
|
||||||
)
|
).all()
|
||||||
interpretations = (
|
interpretations = (
|
||||||
db.session.query(
|
db.session.query(
|
||||||
m.Interpretation,
|
m.Interpretation,
|
||||||
|
|
Loading…
Reference in New Issue