From e7511df2ab03e63d7d4e444866b42aae97efa18f Mon Sep 17 00:00:00 2001 From: "sonto.lau" Date: Fri, 6 Mar 2026 23:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=85=A8=E9=87=87=E7=94=A8=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E5=BC=8F=E4=BD=BF=E7=94=A8=E6=96=B9=E5=BC=8F,bug=20fi?= =?UTF-8?q?x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/AIDeveloper.iml | 2 +- .idea/misc.xml | 2 +- requirements_generator/main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.idea/AIDeveloper.iml b/.idea/AIDeveloper.iml index 68b3de4..2fef383 100644 --- a/.idea/AIDeveloper.iml +++ b/.idea/AIDeveloper.iml @@ -7,7 +7,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index f8b4d26..69c831a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/requirements_generator/main.py b/requirements_generator/main.py index 30404ac..6badc48 100644 --- a/requirements_generator/main.py +++ b/requirements_generator/main.py @@ -194,7 +194,7 @@ def select_project(prompt_text: str = "请选择项目 ID") -> Optional[Project] except ValueError: console.print("[red]ID 必须为整数[/red]") return None - project = db.get_project(pid) + project = db.get_project_by_id(pid) if not project: console.print(f"[red]项目 ID={pid} 不存在[/red]") return None