From c7b321a6364d8ce65afdfc76685d18faf5becfe4 Mon Sep 17 00:00:00 2001 From: cedrick2711 Date: Thu, 27 Aug 2026 09:25:24 -0400 Subject: [PATCH] petit changement pour 429 error handler (temp fix) --- app/extensions.py | 2 +- app/models/_constants.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/extensions.py b/app/extensions.py index b141de9..35ae3a5 100644 --- a/app/extensions.py +++ b/app/extensions.py @@ -22,7 +22,7 @@ babel = Babel() # No storage is named here on purpose: it comes from RATELIMIT_STORAGE_URI in # app.config, which create_app fills from the environment and defaults to # `memory://` (SEC-WEB-004). Naming it in both places is how the two drift. -limiter = Limiter(key_func=get_remote_address, default_limits=["200 per day", "50 per hour"]) +limiter = Limiter(key_func=get_remote_address, default_limits=["1000 per day", "200 per hour"]) def hash_password(password): diff --git a/app/models/_constants.py b/app/models/_constants.py index 4f61c92..e030674 100644 --- a/app/models/_constants.py +++ b/app/models/_constants.py @@ -73,7 +73,7 @@ TRN_URLS = { 'Valorant': 'https://tracker.gg/valorant/profile/riot/{username}', 'League of Legends': 'https://tracker.gg/lol/riot/profile/{username}', 'Counter-Strike 2': 'https://tracker.gg/cs2/profile/steam/{username}', - 'Apex Legends': 'https://tracker.gg/apex/profile/{platform}/{username}', + 'Apex Legends': 'https://tracker.gg/apex/profile/{platform_code}/{username}', 'Overwatch 2': 'https://tracker.gg/overwatch/profile/battlenet/{username}', 'Rainbow Six Siege': 'https://r6.tracker.network/r6siege/profile/{platform_code}/{username}', 'Rocket League': 'https://rocketleague.tracker.network/rocket-league/profile/{platform_code}/{username}',