Skip to content

Commit

Permalink
Increase Rate Limits
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Nov 7, 2024
1 parent 4c280c1 commit 64fe25f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deadlock_analytics_api/routers/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ class PlayerMate(BaseModel):

@router.get(
"/players/{account_id}/mates",
summary="RateLimit: 10req/s",
summary="RateLimit: 100req/s",
)
def get_player_mates(
req: Request,
Expand All @@ -535,7 +535,7 @@ def get_player_mates(
req,
res,
"/v2/players/{account_id}/mates",
[RateLimit(limit=10, period=1)],
[RateLimit(limit=100, period=1)],
)
account_id = utils.validate_steam_id(account_id)
query = """
Expand Down Expand Up @@ -575,7 +575,7 @@ class PlayerParty(BaseModel):

@router.get(
"/players/{account_id}/parties",
summary="RateLimit: 10req/s",
summary="RateLimit: 100req/s",
)
def get_player_parties(
req: Request,
Expand All @@ -591,7 +591,7 @@ def get_player_parties(
req,
res,
"/v2/players/{account_id}/parties",
[RateLimit(limit=10, period=1)],
[RateLimit(limit=100, period=1)],
)
account_id = utils.validate_steam_id(account_id)
query = """
Expand Down

0 comments on commit 64fe25f

Please sign in to comment.