nomyratestat
All checks were successful
Deploy on push / deploy (push) Successful in 5s

This commit is contained in:
Untone 2024-11-18 22:13:49 +03:00
parent 6966d900fa
commit 2fec47d363

View File

@ -205,8 +205,6 @@ def query_with_stat(info):
"rating", "rating",
func.coalesce(stats_subquery.c.rating, 0), func.coalesce(stats_subquery.c.rating, 0),
"last_reacted_at", "last_reacted_at",
stats_subquery.c.last_reacted_at,
"my_rate",
None, None,
).label("stat") ).label("stat")
) )
@ -261,7 +259,6 @@ def get_shouts_with_links(info, q, limit=20, offset=0):
} }
if hasattr(row, "stat"): if hasattr(row, "stat"):
logger.debug(f"Строка {idx} - stat: {row.stat}")
stat = {} stat = {}
if isinstance(row.stat, str): if isinstance(row.stat, str):
stat = json.loads(row.stat) stat = json.loads(row.stat)