Skip to content

Commit

Permalink
Increase rate limit for /metadata with API Key
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Nov 5, 2024
1 parent 61a795d commit e1b75b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deadlock_analytics_api/routers/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def match_timestamps(req: Request, res: Response, match_id: int) -> list[ActiveM

@router.get(
"/matches/{match_id}/metadata",
summary="RateLimit: 100req/min 1000req/hour, API-Key RateLimit: 100req/min",
summary="RateLimit: 100req/min 1000req/hour, API-Key RateLimit: 1000req/min",
)
def get_match_metadata(
req: Request,
Expand All @@ -406,7 +406,7 @@ def get_match_metadata(
res,
"/v1/matches/{match_id}/metadata",
[RateLimit(limit=100, period=60), RateLimit(limit=1000, period=3600)],
[RateLimit(limit=100, period=60)],
[RateLimit(limit=1000, period=60)],
)
res.headers["Cache-Control"] = "public, max-age=3600"
query = "SELECT * FROM match_info WHERE match_id = %(match_id)s LIMIT 1"
Expand Down

0 comments on commit e1b75b0

Please sign in to comment.