Skip to content

Commit

Permalink
修复了新账号进游戏没有 championId 而报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Oct 21, 2023
1 parent fa4fa4a commit b3b0aad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3b0aad

Please sign in to comment.