From 75fb815d941643c4de7e275f5e4014fae0079b80 Mon Sep 17 00:00:00 2001 From: maxmon <541182180@qq.com> Date: Sun, 16 Apr 2023 19:46:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be/app/api/v1/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/be/app/api/v1/index.py b/be/app/api/v1/index.py index d3990b8..5a62717 100644 --- a/be/app/api/v1/index.py +++ b/be/app/api/v1/index.py @@ -18,6 +18,8 @@ def index(): ret_info = ReturnInfo() try: project_config_info = [] + if not os.path.exists(PROJECTS): + os.makedirs(PROJECTS) project_list = os.listdir(PROJECTS) project_list.sort(key=lambda x: os.path.getctime(os.path.join(PROJECTS, x)), reverse=True) for project_name in project_list: