From bf5c5869864c87662da975b0d9231d0d03699753 Mon Sep 17 00:00:00 2001 From: dominicx Date: Wed, 7 Jan 2026 23:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9B=98=E5=90=8E=E6=B8=85?= =?UTF-8?q?=E7=82=B9=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 极端情况increase 返回None,会出现标题跟持仓市值 之间缺少MSG_OUTER_SEPARATOR,也就是’盘后清点MSG_INNER_SEPARATOR持仓市值这样。 --- delegate/daily_reporter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/delegate/daily_reporter.py b/delegate/daily_reporter.py index 489ad35..00a9735 100644 --- a/delegate/daily_reporter.py +++ b/delegate/daily_reporter.py @@ -149,12 +149,10 @@ def today_hold_report(self, today: str, positions): def check_asset(self, today: str, asset): title = f'[{self.account_id}]{self.strategy_name} 盘后清点' - text = title + text = title + MSG_OUTER_SEPARATOR increase = get_total_asset_increase(self.path_assets, today, asset.total_asset) if increase is not None: - text += MSG_OUTER_SEPARATOR - total_change = colour_text( f'{"+" if increase > 0 else ""}{round(increase, 2)}', increase > 0,