fix #1737: MakeFastAPIOffline函数内代码编写错误

This commit is contained in:
liunux4odoo 2023-10-12 10:56:49 +08:00
parent 01577d6264
commit 1ac173958d

View File

@ -194,7 +194,7 @@ def MakeFastAPIOffline(
index = i
break
if isinstance(index, int):
app.routes.pop(i)
app.routes.pop(index)
# Set up static file mount
app.mount(