mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-01 16:50:12 +08:00
fix only_active condition of tree_message_count_stats()
This commit is contained in:
@@ -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