Commit Graph

23 Commits

Author SHA1 Message Date
MingxuanGame
292e6b0eba chore(linter): make lint happy 2025-08-26 13:18:11 +08:00
pre-commit-ci[bot]
7625cd99f5 chore(deps): auto fix by pre-commit hooks 2025-08-26 13:18:11 +08:00
咕谷酱
b4fd4e0256 Handle rate limit errors in BeatmapsetFetcher
Introduces RateLimitError to manage 429 responses from the API, updating request_api to raise this error and adding handling in prefetch and warmup logic to skip or log when rate limits are hit. Also improves error handling for authentication failures and token expiration.
2025-08-26 13:18:11 +08:00
咕谷酱
8adc88bf00 Remove retry logic from BaseFetcher API requests
Simplified the BaseFetcher class by removing the max_retries parameter and all related retry and reauthorization logic. API requests now fail immediately on authentication errors, and token clearing is handled by a new _clear_tokens method. This change streamlines error handling and reduces complexity.
2025-08-26 13:18:11 +08:00
MingxuanGame
598fcc8b38 refactor(project): make pyright & ruff happy 2025-08-22 08:21:52 +00:00
咕谷酱
80d4237c5d ruff fix 2025-08-22 00:07:19 +08:00
咕谷酱
b3fff65e35 fix token 2025-08-18 17:41:10 +08:00
咕谷酱
7f512cec6e Optimization of score calculation 2025-08-18 17:16:44 +08:00
咕谷酱
8ba123a2dd Fixed homepage pre-caching issue 2025-08-18 16:28:27 +08:00
咕谷酱
71c961cafd add search redis 2025-08-18 16:20:29 +08:00
MingxuanGame
1bc4687a0e fix(beatmap): always retry when status_code >= 400 2025-08-17 18:14:34 +00:00
MingxuanGame
ebbc0b8252 feat(score): allow to recalculate all score pp 2025-08-14 06:50:17 +00:00
MingxuanGame
4b5aefb946 feat(beatmapset): support search beatmapset 2025-08-13 07:55:48 +00:00
MingxuanGame
f6c375caf3 feat(fetcher): refresh access_token automatically 2025-08-10 11:44:09 +00:00
MingxuanGame
86a6fd1b69 feat(user): support online & last_visit 2025-08-01 02:49:49 +00:00
MingxuanGame
c5fc6afc18 feat(redis): use asyncio 2025-07-31 14:38:10 +00:00
MingxuanGame
223fa99692 feat(score): support calculate pp 2025-07-29 02:56:21 +00:00
MingxuanGame
1be3388524 feat(log): add logger 2025-07-28 10:38:40 +00:00
MingxuanGame
19895789ac feat(beatmap): support lookup api 2025-07-27 09:01:33 +00:00
MingxuanGame
ec241ac200 fix(solo-score): fix submit solo-score & Bigint 2025-07-27 04:11:41 +00:00
MingxuanGame
900a17f815 feat(beatmap): implement get beatmap arrtibutes 2025-07-26 17:31:23 +00:00
MingxuanGame
8d6b5a882d feat(fetcher): add data fetcher for beatmap & beatmapset 2025-07-26 17:01:46 +08:00
MingxuanGame
cca4a2f1be feat(fetcher): add data fetcher 2025-07-26 16:06:53 +08:00