From c126531e49e908f28717033f12a868601501f346 Mon Sep 17 00:00:00 2001 From: pi3c Date: Wed, 11 Oct 2023 21:42:54 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BA=D1=80=D1=8B=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproger/dbase/database.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pyproger/dbase/database.py b/pyproger/dbase/database.py index f9848ca..201b2d7 100644 --- a/pyproger/dbase/database.py +++ b/pyproger/dbase/database.py @@ -47,12 +47,7 @@ def get_all_posts_by_tag(tag, page, per_page): def get_page(slug): - page_query = ( - db.session.query(Page) - .filter(Post.published.is_(True)) - .filter(Page.slug == slug) - .one_or_none() - ) + page_query = db.session.query(Page).filter(Page.slug == slug).one_or_none() return page_query