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 index = i
break break
if isinstance(index, int): if isinstance(index, int):
app.routes.pop(i) app.routes.pop(index)
# Set up static file mount # Set up static file mount
app.mount( app.mount(