fix: 稳定利润账号分页游标

This commit is contained in:
Codex
2026-07-14 17:39:10 +02:00
parent 4e0e235f97
commit d57d69609c
@@ -184,7 +184,7 @@ def run_profit_report():
confirmed_with_self = confirmed_without_self - self_cost
without_complete = not missing_profit and not unclassified
with_complete = without_complete and not missing_self
account_rows.sort(key=lambda row: (row["class"], row["groupName"], -profit_decimal(row["apiAmountUsd"]), str(row["accountName"])))
account_rows.sort(key=lambda row: (row["class"], row["groupName"], str(row["accountId"]), str(row["accountName"])))
return {
"ok": True,
"mode": "profit",