This commit is contained in:
parent
6966d900fa
commit
2fec47d363
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user