This commit is contained in:
parent
7cf3f91dac
commit
0a26f2986f
|
@ -327,7 +327,7 @@ async def get_shout(_, info, slug: str, shout_id = 0):
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
# Отключение автосохранения
|
# Отключение автосохранения
|
||||||
with session.no_autoflush:
|
with session.no_autoflush:
|
||||||
q, _ = query_shouts(slug)
|
q, _ = query_shouts(slug, shout_id)
|
||||||
results = session.execute(q).first()
|
results = session.execute(q).first()
|
||||||
if results:
|
if results:
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user