From ee24f2f1db4286218a34a340282e46230f0a0f9d Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 26 Apr 2024 11:06:13 +0300 Subject: [PATCH] my-shout-not-published --- resolvers/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/editor.py b/resolvers/editor.py index e8000aec..c7a11335 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -31,7 +31,7 @@ async def get_my_shout(_, info, shout_id: int): session.query(Shout) .filter(Shout.id == shout_id) .options(joinedload(Shout.authors), joinedload(Shout.topics)) - .filter(and_(Shout.deleted_at.is_(None), Shout.published_at.is_(None))) + .filter(Shout.deleted_at.is_(None)) .first() ) if not shout: