From 152f726cf54958f4ee6dbd20ce9570083e536ecf Mon Sep 17 00:00:00 2001 From: ktianc Date: Tue, 6 Jun 2023 21:50:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E5=90=AF=E5=8A=A8=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0IP=E5=92=8C=E7=AB=AF=E5=8F=A3=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kinit-api/application/settings.py | 2 +- kinit-api/main.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/kinit-api/application/settings.py b/kinit-api/application/settings.py index 6820e04..24795d9 100644 --- a/kinit-api/application/settings.py +++ b/kinit-api/application/settings.py @@ -11,7 +11,7 @@ from fastapi.security import OAuth2PasswordBearer """ 系统版本 """ -VERSION = "1.8.0" +VERSION = "1.8.1" """安全警告: 不要在生产中打开调试运行!""" DEBUG = True diff --git a/kinit-api/main.py b/kinit-api/main.py index 6df5eca..90b90c6 100644 --- a/kinit-api/main.py +++ b/kinit-api/main.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # @version : 1.0 -# @Creaet Time : 2021/10/19 15:47 +# @Create Time : 2021/10/19 15:47 # @File : main.py # @IDE : PyCharm # @desc : 主程序入口 @@ -25,7 +25,6 @@ from scripts.create_app.main import CreateApp from core.event import lifespan from utils.tools import import_modules - shell_app = typer.Typer() @@ -67,7 +66,10 @@ def create_app(): @shell_app.command() -def run(host: str=typer.Option(default='0.0.0.0', help='监听主机IP,默认开放给本网络所有主机'), port: int=typer.Option(default=9000, help='监听端口')): +def run( + host: str = typer.Option(default='0.0.0.0', help='监听主机IP,默认开放给本网络所有主机'), + port: int = typer.Option(default=9000, help='监听端口') +): """ 启动项目