From a57a5a4e5b65d00e8e8b0d002d47a8203b3683fe Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Sat, 2 Dec 2023 23:29:34 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=B0=B4=E4=B8=BB?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E5=88=A4=E6=96=AD=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/database/models/character.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LittlePaimon/database/models/character.py b/LittlePaimon/database/models/character.py index c34b9ca..8d23817 100644 --- a/LittlePaimon/database/models/character.py +++ b/LittlePaimon/database/models/character.py @@ -311,8 +311,8 @@ class Character(Model): character.region = '未知' character.rarity = 5 traveler_skill = role_skill_map['Name'][list(data['skillLevelMap'].keys())[-1]] - find_element = re.search(r'[风雷岩草水火冰]', traveler_skill).group() - character.element = find_element + find_element = re.search(r'[风雷岩草流火冰]', traveler_skill).group() + character.element = find_element if find_element != "流" else "水" role_name = find_element + '主' else: character.region = role_datas_map[name]['region']