mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 07:01:36 +01:00
displayed rank should start with 1 not 0
This commit is contained in:
@@ -68,6 +68,9 @@ def player():
|
|||||||
maxRating = max(maxRating, int(ratingString))
|
maxRating = max(maxRating, int(ratingString))
|
||||||
|
|
||||||
yMin, yMax = prettifyMinMaxY(minRating, maxRating)
|
yMin, yMax = prettifyMinMaxY(minRating, maxRating)
|
||||||
|
|
||||||
|
# change displayed rank to start from 1 :)
|
||||||
|
player.rank += 1
|
||||||
|
|
||||||
return flask.render_template("player.html", player=player, CSV_RATINGS=",".join(csv_ratings),
|
return flask.render_template("player.html", player=player, CSV_RATINGS=",".join(csv_ratings),
|
||||||
CSV_MONTH_YEAR_OF_RATINGS=",".join(csv_month_year),
|
CSV_MONTH_YEAR_OF_RATINGS=",".join(csv_month_year),
|
||||||
|
|||||||
Reference in New Issue
Block a user