Skip to content

Commit

Permalink
修复排位过滤可能导致的对局信息界面加载卡死 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jan 10, 2024
1 parent 3e22aec commit b835a01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,9 @@ def process_item(item):
origGamesInfo["games"] = [
game for game in origGamesInfo["games"] if game["queueId"] in (420, 440)]
begIdx = 15
while len(origGamesInfo["games"]) < 11: # FIXME 老玩家打排位, 会死锁

# FIXME 老玩家打排位, 会死锁
while len(origGamesInfo["games"]) < 11 and endIdx <= 100:
endIdx = begIdx + 5
origGamesInfo["games"].extend([
game for game in connector.getSummonerGamesByPuuid(puuid, begIdx, endIdx)["games"]
Expand Down Expand Up @@ -1237,7 +1239,9 @@ def process_item(item, isAllys=False):
origGamesInfo["games"] = [
game for game in origGamesInfo["games"] if game["queueId"] in (420, 440)]
begIdx = 15
while len(origGamesInfo["games"]) < 11: # FIXME 老玩家打排位, 会死锁

# FIXME 老玩家打排位, 会死锁
while len(origGamesInfo["games"]) < 11 and endIdx <= 100:
endIdx = begIdx + 5
origGamesInfo["games"].extend([
game for game in connector.getSummonerGamesByPuuid(puuid, begIdx, endIdx)["games"]
Expand Down

0 comments on commit b835a01

Please sign in to comment.