Skip to content

Commit

Permalink
chore: Remove tpoints from /api/team/me
Browse files Browse the repository at this point in the history
  • Loading branch information
mradigen committed Jan 27, 2024
1 parent 0cc2a53 commit b642fb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pwncore/routes/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b642fb5

Please sign in to comment.