From b3b0aad934e6e61a7028101f824bc29f79f17342 Mon Sep 17 00:00:00 2001 From: Zzaphkiel <1278228162@qq.com> Date: Sun, 22 Oct 2023 01:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=96=B0=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E8=BF=9B=E6=B8=B8=E6=88=8F=E6=B2=A1=E6=9C=89=20champi?= =?UTF-8?q?onId=20=E8=80=8C=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/main_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/view/main_window.py b/app/view/main_window.py index ccb64081..849188aa 100644 --- a/app/view/main_window.py +++ b/app/view/main_window.py @@ -1035,8 +1035,10 @@ def process_item(item, isAllys=False): # iconId = summoner["profileIconId"] # icon = connector.getProfileIcon(iconId) - iconId = item["championId"] - icon = connector.getChampionIcon(iconId) + championId = item.get("championId") + championId = championId if championId != None else -1 + + icon = connector.getChampionIcon(championId) origRankInfo = connector.getRankedStatsByPuuid(puuid) rankInfo = processRankInfo(origRankInfo)