Skip to content

Commit 3a5ad6e

Browse files
committed
bug fix
1 parent c0d21c4 commit 3a5ad6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metagpt/actions/write_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def get_codes(task_doc: Document, exclude: str, project_repo: ProjectRepo,
166166
if not task_doc.content:
167167
task_doc = project_repo.docs.task.get(filename=task_doc.filename)
168168
m = json.loads(task_doc.content)
169-
code_filenames = m.get(TASK_LIST.key, []) if use_inc else m.get(REFINED_TASK_LIST.key, [])
169+
code_filenames = m.get(TASK_LIST.key, []) if not use_inc else m.get(REFINED_TASK_LIST.key, [])
170170
codes = []
171171
src_file_repo = project_repo.srcs
172172

0 commit comments

Comments
 (0)