minor-debug
All checks were successful
Deploy on push / deploy (push) Successful in 57s

This commit is contained in:
Untone 2025-02-11 23:44:29 +03:00
parent 7814e3d64d
commit ce4a401c1a
2 changed files with 1 additions and 4 deletions

View File

@ -2,7 +2,6 @@
- `add_author_stat_columns` fixed
- `Draft` orm and schema tuning and fixes
- `create_draft` and `update_draft` mutations and resolvers fixed
- deploy faster
#### [0.4.9] - 2025-02-09

View File

@ -144,9 +144,6 @@ def query_with_stat(info):
q = q.outerjoin(topics_subquery, topics_subquery.c.shout == Shout.id)
q = q.add_columns(topics_subquery.c.topics)
# Добавим логирование
logger.info("Added topics join to query")
if has_field(info, "stat"):
stats_subquery = (
select(
@ -319,6 +316,7 @@ async def get_shout(_, info: GraphQLResolveInfo, slug="", shout_id=0):
# Получаем результат через get_shouts_with_stats с limit=1
shouts = get_shouts_with_links(info, q, limit=1)
logger.info(f"get shout result: {shouts}")
# Возвращаем первую (и единственную) публикацию, если она найдена
return shouts[0] if shouts else None