From b642fb51681c8b75a04df58f6ab204b65a1b91d3 Mon Sep 17 00:00:00 2001 From: mradigen <55953083+mradigen@users.noreply.github.com> Date: Sat, 27 Jan 2024 15:41:21 +0530 Subject: [PATCH] chore: Remove tpoints from /api/team/me --- src/pwncore/routes/team.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pwncore/routes/team.py b/src/pwncore/routes/team.py index 30e292f..08404cd 100644 --- a/src/pwncore/routes/team.py +++ b/src/pwncore/routes/team.py @@ -55,10 +55,10 @@ async def get_self_team(jwt: RequireJwt): # Get points from leaderboard # would be better is cache stores the values in a dict indexed by team id - for leaderboard_team in gcache.data: - if leaderboard_team["name"] == team["name"]: - team["tpoints"] = leaderboard_team["tpoints"] - break + # for leaderboard_team in gcache.data: + # if leaderboard_team["name"] == team["name"]: + # team["tpoints"] = leaderboard_team["tpoints"] + # break return team