From f77195dee6fcfd14032ec833c47869e5298a9208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Sat, 25 Jun 2022 11:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A`=E5=A4=A9=E8=B5=8B`?= =?UTF-8?q?=E7=9A=84tag=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mihoyo_libs/get_mihoyo_bbs_data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mihoyo_libs/get_mihoyo_bbs_data.py b/mihoyo_libs/get_mihoyo_bbs_data.py index 9d7f9ce4..1ef91e6f 100644 --- a/mihoyo_libs/get_mihoyo_bbs_data.py +++ b/mihoyo_libs/get_mihoyo_bbs_data.py @@ -678,11 +678,13 @@ async def char_wiki(name, mode='char', level=None): parameters.append({}) if label_str == 'F1P': - parameters[index].update({para: '%.2f%%' % (j * 100)}) - if label_str == 'F2P': parameters[index].update({para: '%.1f%%' % (j * 100)}) + if label_str == 'F2P': + parameters[index].update({para: '%.2f%%' % (j * 100)}) elif label_str == 'F1': parameters[index].update({para: '%.1f' % j}) + elif label_str == 'F2': + parameters[index].update({para: '%.2f' % j}) elif label_str == 'P': parameters[index].update({para: str(round(j * 100)) + '%'}) elif label_str == 'I':