From 526bfa20c6d7c88faae7325abfa3292e02c9bc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E6=80=9D=E7=9D=BF?= Date: Mon, 22 Apr 2024 10:11:32 +0000 Subject: [PATCH] bug fix. Update write_code.py --- metagpt/actions/write_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/actions/write_code.py b/metagpt/actions/write_code.py index feb15657d..d2fa15f6b 100644 --- a/metagpt/actions/write_code.py +++ b/metagpt/actions/write_code.py @@ -166,7 +166,7 @@ class WriteCode(Action): if not task_doc.content: task_doc = project_repo.docs.task.get(filename=task_doc.filename) m = json.loads(task_doc.content) - code_filenames = m.get(TASK_LIST.key, []) if use_inc else m.get(REFINED_TASK_LIST.key, []) + code_filenames = m.get(TASK_LIST.key, []) if not use_inc else m.get(REFINED_TASK_LIST.key, []) codes = [] src_file_repo = project_repo.srcs