From 1ac173958d0b7db9da7b92352a22303ee73c691f Mon Sep 17 00:00:00 2001 From: liunux4odoo Date: Thu, 12 Oct 2023 10:56:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#1737:=20MakeFastAPIOffline=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=86=85=E4=BB=A3=E7=A0=81=E7=BC=96=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils.py b/server/utils.py index 52125fe17..603074877 100644 --- a/server/utils.py +++ b/server/utils.py @@ -194,7 +194,7 @@ def remove_route(url: str) -> None: index = i break if isinstance(index, int): - app.routes.pop(i) + app.routes.pop(index) # Set up static file mount app.mount(