mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-11 01:18:33 +01:00
fix indexing for <100 players
This commit is contained in:
@@ -139,6 +139,10 @@ def leaderboard():
|
|||||||
endOfBoardHtml = "<div id='eof' class=endOfBoardIndicator> - - - End of Board - - - </div>"
|
endOfBoardHtml = "<div id='eof' class=endOfBoardIndicator> - - - End of Board - - - </div>"
|
||||||
endOfBoardIndicator = flask.Markup(endOfBoardHtml)
|
endOfBoardIndicator = flask.Markup(endOfBoardHtml)
|
||||||
|
|
||||||
|
# fix <100 player start at 0 #
|
||||||
|
if maxEntry <= 100:
|
||||||
|
start = max(start, 1)
|
||||||
|
|
||||||
finalResponse = flask.render_template("base.html", playerList=players, \
|
finalResponse = flask.render_template("base.html", playerList=players, \
|
||||||
columNames=columContent, \
|
columNames=columContent, \
|
||||||
start=start, \
|
start=start, \
|
||||||
|
|||||||
Reference in New Issue
Block a user