mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-07 23:31:34 +01:00
add player rank to player query
This commit is contained in:
@@ -23,7 +23,7 @@ def getPlayer():
|
||||
p = db.getPlayer(playerId)
|
||||
if not p:
|
||||
return ("Player not found", 404)
|
||||
return "{}'s Rating: {}".format(p.name, int(p.rating.mu - 2*p.rating.sigma))
|
||||
return "{}'s Rating: {} (Rank {})".format(p.name, int(p.rating.mu - 2*p.rating.sigma), db.getPlayerRank(p))
|
||||
|
||||
@app.route('/get-outcome-prediction', methods=["POST"])
|
||||
def getOutcomePrediction():
|
||||
|
||||
Reference in New Issue
Block a user