Skip to content

Commit

Permalink
chore: change gcache
Browse files Browse the repository at this point in the history
  • Loading branch information
mradigen committed Jan 27, 2024
1 parent 1651d58 commit 0cc2a53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pwncore/routes/leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from pwncore.models import Team

# Metadata at the top for instant accessibility
metadata = {"name": "leaderboard", "description": "Operations on the leaderboard"}
metadata = {"name": "leaderboard",
"description": "Operations on the leaderboard"}

router = APIRouter(prefix="/leaderboard", tags=["leaderboard"])

Expand Down Expand Up @@ -49,7 +50,7 @@ async def get_lb(self, req: Request):
return self.data


gcache = ExpiringLBCache(1.0)
gcache = ExpiringLBCache(30.0)


@router.get("")
Expand Down

0 comments on commit 0cc2a53

Please sign in to comment.