mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-09 08:28:32 +01:00
implement auto filter for min games played
This commit is contained in:
@@ -102,6 +102,8 @@ def leaderboard():
|
||||
|
||||
if playerName:
|
||||
playerInLeaderboard = db.findPlayerByName(playerName)
|
||||
if(playerInLeaderboard.games < 10):
|
||||
return flask.redirect("/player?id={}".format(playerInLeaderboard.playerId))
|
||||
rank = playerInLeaderboard.rank
|
||||
if not playerInLeaderboard:
|
||||
cannotFindPlayer = flask.Markup("<div class=noPlayerFound>No player of that name</div>")
|
||||
|
||||
Reference in New Issue
Block a user