diff --git a/src/classes/user.py b/src/classes/user.py index ac11afd..27d5867 100644 --- a/src/classes/user.py +++ b/src/classes/user.py @@ -39,7 +39,8 @@ def parse_rootme_user_data(data): idx = int(data["id_auteur"]) username = data["nom"] score = int(data["score"]) - rank = int(data["position"]) + _rank = data["position"] + rank = int(_rank) if _rank != "" else 9999999 nb_solves = len(data["validations"]) keys = User.keys()