From dfbd2e750e94139f9ca39722a3351f3cbc0507e9 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Sat, 2 Dec 2023 23:34:02 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/database/models/character.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittlePaimon/database/models/character.py b/LittlePaimon/database/models/character.py index 8d23817..c9bdcc2 100644 --- a/LittlePaimon/database/models/character.py +++ b/LittlePaimon/database/models/character.py @@ -313,7 +313,7 @@ class Character(Model): traveler_skill = role_skill_map['Name'][list(data['skillLevelMap'].keys())[-1]] find_element = re.search(r'[风雷岩草流火冰]', traveler_skill).group() character.element = find_element if find_element != "流" else "水" - role_name = find_element + '主' + role_name = character.element + '主' else: character.region = role_datas_map[name]['region'] character.rarity = role_datas_map[name]['star']