修复滚仓

This commit is contained in:
dekun
2026-05-28 14:43:15 +08:00
parent e8f77ebd57
commit 33042890b5
11 changed files with 387 additions and 6 deletions
+3 -1
View File
@@ -171,7 +171,9 @@ def register_hub_routes(app):
rolls = []
try:
for row in conn.execute(
"SELECT * FROM roll_groups WHERE status='active' ORDER BY id DESC"
"""SELECT g.* FROM roll_groups g
INNER JOIN order_monitors m ON m.id = g.order_monitor_id AND m.status='active'
WHERE g.status='active' ORDER BY g.id DESC"""
).fetchall():
rolls.append(_row_to_dict(row))
except Exception: