This commit is contained in:
parent
cfed40ddd9
commit
ee24f2f1db
|
@ -31,7 +31,7 @@ async def get_my_shout(_, info, shout_id: int):
|
||||||
session.query(Shout)
|
session.query(Shout)
|
||||||
.filter(Shout.id == shout_id)
|
.filter(Shout.id == shout_id)
|
||||||
.options(joinedload(Shout.authors), joinedload(Shout.topics))
|
.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()
|
.first()
|
||||||
)
|
)
|
||||||
if not shout:
|
if not shout:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user