修复滚仓
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user