feat(performance-point): switch performance calculator to performance-server (#80)
* feat(config): make `performance_server` as default calculator * deploy(docker): use osu-performance-server * docs(readme): add ruleset download instructions * chore(dev): update development environment * feat(dev): update development environment setup and service startup order * fix(deps): move `rosu-pp-py` to `project.optional-dependencies` * feat(beatmap): handle deleted beatmaps * feat(performance-server): add a long timeout for calculation * feat(recalculate): enhance CLI arguments for performance, leaderboard, and rating recalculations with CSV output support * fix(recalculate): resolve reviews * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix(beatmapsync): resolve too long line --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -23,11 +23,13 @@ class BeatmapRawFetcher(BaseFetcher):
|
||||
resp = await self._request(req_url)
|
||||
if resp.status_code >= 400:
|
||||
continue
|
||||
if not resp.text:
|
||||
continue
|
||||
return resp.text
|
||||
raise HTTPError("Failed to fetch beatmap")
|
||||
|
||||
async def _request(self, url: str) -> Response:
|
||||
async with AsyncClient() as client:
|
||||
async with AsyncClient(timeout=15) as client:
|
||||
response = await client.get(
|
||||
url,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user