From 5b6631f9e5f7838325d1657095db28e5a35d7991 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Wed, 24 May 2023 14:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=B7=B1?= =?UTF-8?q?=E6=B8=8A=E5=9B=BE=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/database/models/abyss_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LittlePaimon/database/models/abyss_info.py b/LittlePaimon/database/models/abyss_info.py index 7fe5a32..ff4ed7d 100644 --- a/LittlePaimon/database/models/abyss_info.py +++ b/LittlePaimon/database/models/abyss_info.py @@ -5,7 +5,7 @@ from pydantic import BaseModel from tortoise import fields from tortoise.models import Model -from LittlePaimon.utils.alias import get_name_by_id +from LittlePaimon.utils.alias import get_name_by_id, get_chara_icon from .player_info import PlayerInfo @@ -232,13 +232,13 @@ class AbyssInfo(Model): battles_up.append(AbyssCharacters(characters=[AbyssCharacter( name=get_name_by_id(c['id']), character_id=c['id'], - icon=c['icon'].split('/')[-1].replace('.png', ''), + icon=get_chara_icon(chara_id=c['id']), rarity=c['rarity'], level=c['level']) for c in level['battles'][0]['avatars']])) battles_down.append(AbyssCharacters(characters=[AbyssCharacter( name=get_name_by_id(c['id']), character_id=c['id'], - icon=c['icon'].split('/')[-1].replace('.png', ''), + icon=get_chara_icon(chara_id=c['id']), rarity=c['rarity'], level=c['level']) for c in level['battles'][1]['avatars']])) floor_info.battles_up = battles_up