Skip to content

Commit

Permalink
修复排位过滤功能使用了未初始化变量的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jan 14, 2024
1 parent 11efa67 commit a647a08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,8 @@ def process_item(item):
game for game in origGamesInfo["games"] if game["queueId"] in (420, 440)]
begIdx = 15

while len(origGamesInfo["games"]) < 11 and endIdx <= 100:

while len(origGamesInfo["games"]) < 11 and begIdx <= 95:
endIdx = begIdx + 5
origGamesInfo["games"].extend([
game for game in connector.getSummonerGamesByPuuid(puuid, begIdx, endIdx)["games"]
Expand Down Expand Up @@ -1222,7 +1223,7 @@ def process_item(item, isAllys=False):
game for game in origGamesInfo["games"] if game["queueId"] in (420, 440)]
begIdx = 15

while len(origGamesInfo["games"]) < 11 and endIdx <= 100:
while len(origGamesInfo["games"]) < 11 and begIdx <= 95:
endIdx = begIdx + 5
origGamesInfo["games"].extend([
game for game in connector.getSummonerGamesByPuuid(puuid, begIdx, endIdx)["games"]
Expand Down

0 comments on commit a647a08

Please sign in to comment.