Revert "fix: remove is_page filter from cart page hydration"
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 18s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 18s
This reverts commit d0da418f12.
This commit is contained in:
2
app.py
2
app.py
@@ -120,7 +120,7 @@ def create_app() -> "Quart":
|
|||||||
return
|
return
|
||||||
post = (
|
post = (
|
||||||
await g.s.execute(
|
await g.s.execute(
|
||||||
select(Post).where(Post.slug == slug)
|
select(Post).where(Post.slug == slug, Post.is_page == True) # noqa: E712
|
||||||
)
|
)
|
||||||
).scalar_one_or_none()
|
).scalar_one_or_none()
|
||||||
if not post:
|
if not post:
|
||||||
|
|||||||
Reference in New Issue
Block a user