From 0543154a62a5a63086c4285b9964b453779a9b15 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Tue, 7 Jul 2026 17:45:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(paper):=20save=5Faccount=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20start/end=20=E2=86=92=20start=5Fdate/end=5Fdate=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sanguo_trader/persistence.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sanguo_trader/persistence.py b/sanguo_trader/persistence.py index 85e15da..141b2ad 100644 --- a/sanguo_trader/persistence.py +++ b/sanguo_trader/persistence.py @@ -78,8 +78,10 @@ def save_account(db_path: str, account: dict[str, Any]) -> int: account.get("stamp_duty_rate", 0.0005), account.get("transfer_fee_rate", 0.00001), account.get("min_commission", 5.0), - account.get("status", "pending"), account.get("start_date"), - account.get("end_date"), _now(), _now(), + account.get("status", "pending"), + account.get("start_date") or account.get("start"), + account.get("end_date") or account.get("end"), + _now(), _now(), ), ) conn.commit()