mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-07 07:11:36 +01:00
offer possibility to deal with max-rank exceeding
This commit is contained in:
@@ -164,7 +164,7 @@ def getRankRange(start, end, revalidateRanks=True):
|
||||
|
||||
if revalidateRanks:
|
||||
updatePlayerRanks(revalidateRanks)
|
||||
|
||||
|
||||
if start > len(playerRankList) or start >= end or end >= len(playerRankList):
|
||||
return len(playerRankList)
|
||||
return playerRankList[start:end]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user