From b972442a8c18e10a50ddcfbdae63fd1e1f99818c Mon Sep 17 00:00:00 2001 From: lvxianya <Devil.lv@thizgroup.com> Date: Tue, 8 Oct 2024 17:15:25 +0800 Subject: [PATCH] update --- web/robo_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/robo_controller.py b/web/robo_controller.py index 401e053..ec1c279 100644 --- a/web/robo_controller.py +++ b/web/robo_controller.py @@ -96,8 +96,8 @@ async def recommend(): 'risk': risk, 'rr': round(sum([id_ticker_map[key]['risk'] * weight for key, weight in funds.items()]), 2), 'cp': cp, 'roi': roi} - note = {'recomm_reason': "recommend reason is ..."} - data['note'] = json.dumps(note) + note = {'recomm_reason': "推èçš„ç†ç”±æ˜¯:"} + data['note'] = json.dumps(note, ensure_ascii=False) # 计算股债比 stock_weight = int( sum(weight * 100 for key, weight in funds.items() if id_ticker_map[key]['assetType'] == 'STOCK')) -- 2.18.1