mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-03 12:00:14 +08:00
fix only_active condition of tree_message_count_stats()
This commit is contained in:
1 parent
530194de08
commit
7e8d4f5a6e
1 file changed
+1
-1
@@ -968,7 +968,7 @@ INNER JOIN message_reaction mr ON mr.task_id = t.id AND mr.payload_type = 'Ranki
|
||||
)
|
||||
|
||||
if only_active:
|
||||
qry.filter(MessageTreeState.active)
|
||||
qry = qry.filter(MessageTreeState.active)
|
||||
|
||||
return [TreeMessageCountStats(**x) for x in qry]
|
||||
|
||||
|
||||
Reference in new issue
Block a user