скрыл

main
Сергей Ванюшкин 2023-10-11 21:42:54 +03:00
parent 3b63421f5f
commit c126531e49
1 changed files with 1 additions and 6 deletions

View File

@ -47,12 +47,7 @@ def get_all_posts_by_tag(tag, page, per_page):
def get_page(slug): def get_page(slug):
page_query = ( page_query = db.session.query(Page).filter(Page.slug == slug).one_or_none()
db.session.query(Page)
.filter(Post.published.is_(True))
.filter(Page.slug == slug)
.one_or_none()
)
return page_query return page_query