mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 14:51:36 +01:00
fix empty output close to eol
This commit is contained in:
@@ -186,9 +186,10 @@ def getRankListLength(revalidateRanks=False):
|
|||||||
def getRankRange(start, end, revalidateRanks=False):
|
def getRankRange(start, end, revalidateRanks=False):
|
||||||
'''Returns a list of player, optionally flushing the ranks-cache first'''
|
'''Returns a list of player, optionally flushing the ranks-cache first'''
|
||||||
global playerRankList
|
global playerRankList
|
||||||
|
|
||||||
|
print(start,end)
|
||||||
updatePlayerRanks(revalidateRanks)
|
updatePlayerRanks(revalidateRanks)
|
||||||
|
|
||||||
if start > len(playerRankList) or start >= end or end >= len(playerRankList):
|
if start > len(playerRankList) or start >= end:
|
||||||
return []
|
return []
|
||||||
return playerRankList[start:end]
|
return playerRankList[start:end]
|
||||||
|
|||||||
Reference in New Issue
Block a user