From a8378b690b011d1ad455e64b1a758d24b9481a67 Mon Sep 17 00:00:00 2001 From: nolan1999 Date: Wed, 2 Sep 2026 01:47:39 +0200 Subject: [PATCH] Fix StandaloneApplication app --- pyproject.toml | 2 +- scripts/serve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a46d465..629ccf8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "api" -version = "0.2.0" +version = "0.3.0" description = "User-facing API of DECODE OpenCloud." authors = ["Arthur Jaques "] readme = "README.md" diff --git a/scripts/serve.py b/scripts/serve.py index b9f3445..5eb7bb1 100644 --- a/scripts/serve.py +++ b/scripts/serve.py @@ -34,7 +34,7 @@ def main() -> None: uvicorn.run(app, host=host, port=port, reload=True) else: StandaloneApplication( - app="app:app", + app=app, options={ "bind": f"{host}:{port}", "workers": (multiprocessing.cpu_count() * 2) + 1,